Пример #1
0
 public DatabaseFactory()
 {
     dataContext = new BangAn_2017Entities();
 }
Пример #2
0
 public UnitOfWorkStore()
 {
     databaseFactory = new DatabaseFactory();
     dataContext     = databaseFactory.GetDbContext();
 }
Пример #3
0
 public Repository(BangAn_2017Entities dataContext)
 {
     this.dataContext = dataContext;
     dbset            = this.dataContext.Set <T>();
 }
Пример #4
0
 public UnitOfWorkStore(IDatabaseFactory databaseFactory)
 {
     // _databaseFactory = databaseFactory;
     this.databaseFactory = new DatabaseFactory();
     dataContext          = this.databaseFactory.GetDbContext();
 }