Example #1
0
 public GenericService(StudentManagementDbContext db)
 {
     _db    = db;
     _table = _db.Set <T>();
 }
Example #2
0
 public GenericService()
 {
     _db    = new StudentManagementDbContext();
     _table = _db.Set <T>();
 }