Esempio n. 1
0
 public UnitOfWork(FrameShopDbContext context, IRepository <Frame> frames,
                   IRepository <FrameShop> frameShops, IRepository <Material> materials)
 {
     _context            = context;
     FrameRepository     = frames;
     FrameShopRepository = frameShops;
     MaterialRepository  = materials;
 }
Esempio n. 2
0
 public Repository(FrameShopDbContext context)
 {
     _dbSet = context.Set <TEntity>();
 }