public Local_UnitOfWork() { databaseFactory = new DatabaseFactory(); dataContext = databaseFactory.GetLocalDbContext(); }
public DatabaseFactory() { localDataContext = new SSKEntities(); centralizedDataContext = new TrinityCentralizedDBEntities(); }
public Local_UnitOfWork(IDatabaseFactory databaseFactory) { // _databaseFactory = databaseFactory; this.databaseFactory = new DatabaseFactory(); dataContext = this.databaseFactory.GetLocalDbContext(); }
public LocalRepository(SSKEntities dataContext) { this.dataContext = dataContext; dbset = this.dataContext.Set <T>(); }
public GenericRepository(SSKEntities context) { this.context = context; this.dbSet = context.Set <TEntity>(); }
public UnitOfWork() { databaseFactory = new DatabaseFactory(); dataContext = databaseFactory.GetDbContext(); }
public DatabaseFactory() { dataContext = new SSKEntities(); }