Example #1
0
 public Repository(EmpyrealContext context)
 {
     _context = context;
     _dbset   = context.Set <T>();
 }
Example #2
0
 public UnitOfWork(EmpyrealContext context, IDbContextTransaction transaction = null)
 {
     _context     = context;
     _transaction = _context.Database.BeginTransaction();
 }