public void SetUp() { _db = new HO2Context(); _repository= new GenericRepository<Mate>(_db); _transaction = _db.BeginTransaction(); }
public GenericRepository(HO2Context context) { Db = context; DbSet = ((HO2Context)Db).Set <T>(); }
public void SetUp() { _db = new HO2Context(); _repository = new GenericRepository <Mate>(_db); _transaction = _db.BeginTransaction(); }
public GenericRepository() { Db = new HO2Context(); DbSet = Db.Set <T>(); }