Example #1
0
 public Local_UnitOfWork()
 {
     databaseFactory = new DatabaseFactory();
     dataContext     = databaseFactory.GetLocalDbContext();
 }
Example #2
0
 public DatabaseFactory()
 {
     localDataContext       = new SSKEntities();
     centralizedDataContext = new TrinityCentralizedDBEntities();
 }
Example #3
0
 public Local_UnitOfWork(IDatabaseFactory databaseFactory)
 {
     // _databaseFactory = databaseFactory;
     this.databaseFactory = new DatabaseFactory();
     dataContext          = this.databaseFactory.GetLocalDbContext();
 }
Example #4
0
 public LocalRepository(SSKEntities dataContext)
 {
     this.dataContext = dataContext;
     dbset            = this.dataContext.Set <T>();
 }
Example #5
0
 public GenericRepository(SSKEntities context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }
Example #6
0
 public UnitOfWork()
 {
     databaseFactory = new DatabaseFactory();
     dataContext     = databaseFactory.GetDbContext();
 }
Example #7
0
 public DatabaseFactory()
 {
     dataContext = new SSKEntities();
 }