Exemple #1
0
 public GenericRepository(Model db)
 {
     _db    = db;
     _table = _db.Set <T>();
 }
Exemple #2
0
 public GenericRepository()
 {
     _db    = new Model();
     _table = _db.Set <T>();
 }