예제 #1
0
 public DbExecuteContext(
     IDbTable <TModel> dbTable, IDbServiceProvider runtimeProvider, IDbQueryStrategyProvider queryStrategyProvider) : this()
 {
     _queryTable            = dbTable;
     _serviceProvider       = runtimeProvider;
     _queryStrategyProvider = queryStrategyProvider;
 }
예제 #2
0
 public DbQueryContext()
 {
     _container             = App.ServiceProviders;
     _groupByFields         = new List <DbQueryGroupByClause <TModel> >();
     _whereClauses          = new List <DbQueryWhereClause <TModel> >();
     _orderbyClauses        = new List <DbQueryOrderByClause <TModel> >();
     _queryStrategyProvider = _container.Resolve <IDbQueryStrategyProvider>();
 }
예제 #3
0
 public DbExecuteContext(IDbTable <TModel> dbTable, IDbServiceProvider runtimeProvider) : this()
 {
     _queryTable            = dbTable;
     _serviceProvider       = runtimeProvider;
     _queryStrategyProvider = _container.Resolve <IDbQueryStrategyProvider>();
 }
예제 #4
0
 public DbExecuteContext(IDbTable <TModel> dbTable, string connectionString) : this()
 {
     _queryTable            = dbTable;
     _serviceProvider       = _container.Resolve <IDbServiceProvider>();
     _queryStrategyProvider = _container.Resolve <IDbQueryStrategyProvider>();
 }