/************************************************************************************
*
* Umbraco Data Layer
* MIT Licensed work
* ©2008 Ruben Verborgh
*
***********************************************************************************/
namespace umbraco.DataLayer.Utility
{
///
/// Base class for utilities that use an ISqlHelper as data source.
///
/// The SQL helper type.
public abstract class BaseUtility 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 Protected Constructors
///
/// Initializes the with the specified SQL helper.
///
/// The SQL helper.
protected BaseUtility(S sqlHelper)
{
m_SqlHelper = sqlHelper;
}
#endregion
}
}