public DatabaseFactory() { dataContext = new BangAn_2017Entities(); }
public UnitOfWorkStore() { databaseFactory = new DatabaseFactory(); dataContext = databaseFactory.GetDbContext(); }
public Repository(BangAn_2017Entities dataContext) { this.dataContext = dataContext; dbset = this.dataContext.Set <T>(); }
public UnitOfWorkStore(IDatabaseFactory databaseFactory) { // _databaseFactory = databaseFactory; this.databaseFactory = new DatabaseFactory(); dataContext = this.databaseFactory.GetDbContext(); }