예제 #1
0
 public void SetUp()
 {
     _db = new HO2Context();
     _repository= new GenericRepository<Mate>(_db);
     _transaction = _db.BeginTransaction();
 }
예제 #2
0
 public GenericRepository(HO2Context context)
 {
     Db    = context;
     DbSet = ((HO2Context)Db).Set <T>();
 }
예제 #3
0
 public void SetUp()
 {
     _db          = new HO2Context();
     _repository  = new GenericRepository <Mate>(_db);
     _transaction = _db.BeginTransaction();
 }
예제 #4
0
 public GenericRepository()
 {
     Db    = new HO2Context();
     DbSet = Db.Set <T>();
 }