예제 #1
0
 public SqlController(BenchmarkDataContext ctx, IRepository <TestHistory> repositoryHistory, IRepository <Vendor> repositoryVendor, OperationCRUDSQL operationCRUDSQL, IServiceFroWorkWithDB serviceFroWorkWithDB)
 {
     this._serviceFroWorkWithDB = serviceFroWorkWithDB;
     this._operationCRUDSQL     = operationCRUDSQL;
     this._repositoryHistory    = repositoryHistory;
     this._repositoryVendor     = repositoryVendor;
 }
예제 #2
0
 public OperationCRUDEF(IRepository <Vendor> vendor, IRepository <WareHouse> wareHouse, BenchmarkDataContext ctx)
 {
     this._ctx       = ctx;
     this._vendor    = vendor;
     this._wareHouse = wareHouse;
 }
예제 #3
0
 public OperationCRUDSQL(BenchmarkDataContext ctx)
 {
     this._ctx = ctx;
 }
예제 #4
0
 public DbRepository(BenchmarkDataContext ctx)
 {
     _ctx   = ctx;
     _table = _ctx.Set <T>();
     Data   = _table;
 }