//WebShopDB _db; public ItemManager(WebShopDB db) : base(db) { //_db = db; }
//WebShopDB _db; public UserManager(WebShopDB db) : base(db) { //_db = db; }
//WebShopDB _db; Viss, kas aizīmēts, bija vajadzīgs, lai viss strādātu bez basemanager klases public CategoryManager(WebShopDB db) : base(db) //padodam tālāk uz basemanageri { //_db = db; }
} //dbSet jāizmanto using || pateiktsim, kuru tabulu būs jāizmanto public BaseManager(WebShopDB db) { _db = db; }