/************************************************************************************
*
* Umbraco Data Layer
* MIT Licensed work
* ©2008 Ruben Verborgh
*
***********************************************************************************/
namespace umbraco.DataLayer.Extensions
{
///
/// Abstract base class for an SQL helper extension.
/// Implements all methods with an empty body.
/// You will find it convenient to use this class as a base for most extensions,
/// because you only have to override the functions you actually use.
///
public abstract class SqlHelperExtension : ISqlHelperExtension
{
#region ISqlHelperExtension Members
///
/// Called when ExecuteScalar is executed.
///
/// The SQL helper.
/// The command text.
/// The SQL parameters.
public virtual void OnExecuteScalar(ISqlHelper sqlHelper, ref string commandText, ref IParameter[] parameters)
{}
///
/// Called when ExecuteNonQuery is executed.
///
/// The SQL helper.
/// The command text.
/// The SQL parameters.
public virtual void OnExecuteNonQuery(ISqlHelper sqlHelper, ref string commandText, ref IParameter[] parameters)
{}
///
/// Called when ExecuteReader is executed.
///
/// The SQL helper.
/// The command text.
/// The SQL parameters.
public virtual void OnExecuteReader(ISqlHelper sqlHelper, ref string commandText, ref IParameter[] parameters)
{}
///
/// Called when ExecuteXmlReader is executed.
///
/// The SQL helper.
/// The command text.
/// The SQL parameters.
public virtual void OnExecuteXmlReader(ISqlHelper sqlHelper, ref string commandText, ref IParameter[] parameters)
{}
#endregion
}
}