Пример #1
0
 public DataTable Query(string query, DbParameters parameters) =>
 this.dbProvider.Select(query, parameters).ToDataTable();
Пример #2
0
 public object ExecuteScalar(string query, DbParameters parameters = null) =>
 this.dbProvider.ExecuteScalar(query, parameters);
Пример #3
0
 public DbSelect Select(string query, DbParameters parameters) =>
 this.dbProvider.Select(query, parameters);
Пример #4
0
 public int ExecuteNonQuery(string query, DbParameters parameters = null) =>
 this.dbProvider.ExecuteNonQuery(query, parameters);
Пример #5
0
 public Hashtable ExecuteSP(string spName, DbParameters parameters, ref DataTable dataTable, params string[] returnParams) =>
 this.dbProvider.ExecuteSP(spName, parameters, ref dataTable, returnParams);
Пример #6
0
 public int Delete(string tableName, string whereCondition, DbParameters parameters) =>
 this.dbProvider.Delete(tableName, whereCondition, parameters);
Пример #7
0
 public int Update(string tableName, DbFields values, string whereCondition, DbParameters parameters) =>
 this.dbProvider.Update(tableName, values, whereCondition, parameters);
Пример #8
0
 internal DbSelect(IDbProvider provider, string query, DbParameters parameters)
 {
     this.provider   = (DbProviderBase)provider;
     this.query      = query;
     this.parameters = parameters;
 }