public GenericRepository(JewelryShopDbContext db) { this.db = db; table = db.Set <T>(); }
public GenericRepository() { db = new JewelryShopDbContext(); table = db.Set <T>(); }