Files
Umbraco-CMS/umbraco/datalayer/Utility/BaseUtility.cs
Shandem f6d0d043b5 DO NOT DOWNLOAD. DOWNLOAT LATEST STABLE FROM RELEASE TAB
Created 4.1.0 branch

[TFS Changeset #55082]
2009-06-19 07:39:16 +00:00

51 lines
1.4 KiB
C#

/************************************************************************************
*
* Umbraco Data Layer
* MIT Licensed work
* ©2008 Ruben Verborgh
*
***********************************************************************************/
namespace umbraco.DataLayer.Utility
{
/// <summary>
/// Base class for utilities that use an ISqlHelper as data source.
/// </summary>
/// <typeparam name="S">The SQL helper type.</typeparam>
public abstract class BaseUtility<S> where S : ISqlHelper
{
#region Private Fields
/// <summary>SQL helper the utility uses as data source.</summary>
private readonly S m_SqlHelper;
#endregion
#region Protected Properties
/// <summary>
/// Gets the SQL helper.
/// </summary>
/// <value>The SQL helper.</value>
protected S SqlHelper
{
get { return m_SqlHelper; }
}
#endregion
#region Protected Constructors
/// <summary>
/// Initializes the <see cref="BaseUtility&lt;S&gt;"/> with the specified SQL helper.
/// </summary>
/// <param name="sqlHelper">The SQL helper.</param>
protected BaseUtility(S sqlHelper)
{
m_SqlHelper = sqlHelper;
}
#endregion
}
}