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