/************************************************************************************ * * Umbraco Data Layer * MIT Licensed work * ©2008 Ruben Verborgh * ***********************************************************************************/ using umbraco.DataLayer.Utility.Installer; using umbraco.DataLayer.Utility.Table; using System; namespace umbraco.DataLayer.Utility { /// /// Base class providing access to various Umbraco utilities /// that operate on data layer level. /// /// public class DefaultUtility : IUtilitySet where S : ISqlHelper { #region Private Fields /// SQL helper the utility uses as data source. private readonly S m_SqlHelper; #endregion #region Protected Properties /// /// Gets the SQL helper. /// /// The SQL helper. protected S SqlHelper { get { return m_SqlHelper; } } #endregion #region Public Constructors /// /// Initializes a new instance of the class. /// /// The SQL helper. public DefaultUtility(S sqlHelper) { m_SqlHelper = sqlHelper; } #endregion #region IUmbracoUtility Members /// /// Creates an installer. /// /// The default installer. public virtual IInstallerUtility CreateInstaller() { throw new NotImplementedException(); } /// /// Creates a table utility. /// /// The table utility public virtual ITableUtility CreateTableUtility() { return new DefaultTableUtility(SqlHelper); } #endregion } }