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