public abstract SqlDataHandler { #region Properties protected static string ConnectionString { get; set; } #endregion #region Methods protected static DataTable GetDataTable(SqlCommand GetTableCommand) { ... } #endregion } public AccountSqlDataHandler : SqlDataHandler { #region Methods public static DataTable GetAccountHistory() { SqlCommand getAccountHistoryCommand; ... return AccountSqlDataHandler.GetDataTable(getAccountHistoryCommand); } #endregion #region Ctors static AccountSqlDataHandler() { AccountSqlDataHandler.ConnectionString = "Connection string for account database"; } #endregion } public Account { #region Properties public List<HistoryItem> AccountHistory { get { List<HistoryItem> accountHistory; accountHistory = this.getItemsFromDataTable(AccountSqlDataHandler.GetAccountHistory()); return accountHistory; } } #endregion }
Thread.sleep()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)