/************************************************************************************ * * Umbraco Data Layer * MIT Licensed work * ©2008 Ruben Verborgh * ***********************************************************************************/ using System.Data; using System.Xml; namespace umbraco.DataLayer.Extensions { /// /// Interface for an extension to an . /// public interface ISqlHelperExtension { /// /// Called when ExecuteScalar is executed. /// /// The SQL helper. /// The command text. /// The SQL parameters. void OnExecuteScalar(ISqlHelper sqlHelper, ref string commandText, ref IParameter[] parameters); /// /// Called when ExecuteNonQuery is executed. /// /// The SQL helper. /// The command text. /// The SQL parameters. void OnExecuteNonQuery(ISqlHelper sqlHelper, ref string commandText, ref IParameter[] parameters); /// /// Called when ExecuteReader is executed. /// /// The SQL helper. /// The command text. /// The SQL parameters. void OnExecuteReader(ISqlHelper sqlHelper, ref string commandText, ref IParameter[] parameters); /// /// Called when ExecuteXmlReader is executed. /// /// The SQL helper. /// The command text. /// The SQL parameters. void OnExecuteXmlReader(ISqlHelper sqlHelper, ref string commandText, ref IParameter[] parameters); } }