Title / Description
Code using System; using System.Collections.Generic; using System.Data; using System.Data.Common; using PAZ.ApplicationServer.Framework.Events; namespace PAZ.ApplicationServer.Framework.API { /// <summary> /// /// </summary> public enum SortSequence { Asc = 0, Desc = 1 } public interface IDataService : IDisposable { #region Public Properties IList<DataColumn> PrimaryKeyColumns{ get; } #endregion Public Properties #region Public EventHandler /// <summary> /// /// </summary> event CancelEventHandler<DataTableFillingEventArgs> DataTableFilling; /// <summary> /// /// </summary> event EventHandler<DataTableFilledEventArgs> DataTableFilled; /// <summary> /// /// </summary> event CancelEventHandler<DataRowDeletingEventArgs> DataRowDeleting; /// <summary> /// /// </summary> event EventHandler<DataRowDeletedEventArgs> DataRowDeleted; /// <summary> /// /// </summary> event CancelEventHandler<DataRowInsertingEventArgs> DataRowInserting; /// <summary> /// /// </summary> event EventHandler<DataRowInsertedEventArgs> DataRowInserted; /// <summary> /// /// </summary> event CancelEventHandler<DataRowUpdatingEventArgs> DataRowUpdating; /// <summary> /// /// </summary> event EventHandler<DataRowUpdatedEventArgs> DataRowUpdated; #endregion Public EventHandler #region Public Functions /// <summary> /// /// </summary> void Initialize(); /// <summary> /// /// </summary> void UnInitialize(); /// <summary> /// /// </summary> /// <returns></returns> DataTable PrepareDataTable(); /// <summary> /// /// </summary> /// <returns></returns> DataSet PrepareDataSet(); /// <summary> /// /// </summary> /// <param name="parameters"></param> /// <param name="index"></param> /// <param name="bulk"></param> /// <returns></returns> DataTable FillDataTable(IDictionary<String, Object> parameters, IDictionary<String, SortSequence> orders, Int32 index, Int32 bulk, ISessionDataContainer sessionData); /// <summary> /// /// </summary> /// <param name="table"></param> /// <returns></returns> void UpdateDataTable(DataTable table, ISessionDataContainer sessionData); /// <summary> /// /// </summary> /// <param name="dataSet"></param> /// <param name="sessionData"></param> /// <param name="parameters"></param> void UpdateDataSet(DataSet dataSet, ISessionDataContainer sessionData, DataSet parameters); /// <summary> /// /// </summary> /// <param name="?"></param> /// <param name="?"></param> /// <param name="?"></param> void ExecuteUpdateCommand(DataRow dataRow, DbTransaction transaction, ISessionDataContainer sessionData); /// <summary> /// /// </summary> /// <param name="dataTable"></param> /// <param name="transaction"></param> /// <param name="sessionData"></param> void ExecuteUpdateCommand(DataTable dataTable, DbTransaction transaction, ISessionDataContainer sessionData); /// <summary> /// /// </summary> /// <param name="dataRow"></param> /// <param name="transaction"></param> /// <param name="sessionData"></param> void ExecuteInsertCommand(DataRow dataRow, DbTransaction transaction, ISessionDataContainer sessionData); /// <summary> /// /// </summary> /// <param name="dataTable"></param> /// <param name="transaction"></param> /// <param name="sessionData"></param> void ExecuteInsertCommand(DataTable dataTable, DbTransaction transaction, ISessionDataContainer sessionData); /// <summary> /// /// </summary> /// <param name="dataRow"></param> /// <param name="transaction"></param> /// <param name="sessionData"></param> void ExecuteDeleteCommand(DataRow dataRow, DbTransaction transaction, ISessionDataContainer sessionData); #endregion Public Functions } }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code