Example #1
0
 public GenericRepository(GenericRepoContext db)
 {
     this.db = db;
     table   = db.Set <T>();
 }
Example #2
0
 public GenericRepository()
 {
     this.db = new GenericRepoContext();
     table   = db.Set <T>();
 }