Example #1
0
 public GenericRepository(TacContext context)
 {
     db    = context;
     dbSet = db.Set <T>();
 }
Example #2
0
 public GenericRepository()
 {
     db    = new TacContext();
     dbSet = db.Set <T>();
 }