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