Beispiel #1
0
 public UnitOfWork(AuctionDbContext context, IHostingEnvironment hostingEnvironment)
 {
     _context            = context;
     _hostingEnvironment = hostingEnvironment;
     Artworks            = new ArtworksRepository(context);
     Auctions            = new AuctionRepository(context, hostingEnvironment);
     Authors             = new AuthorsRepository(context);
     Categories          = new CategoryRepository(context);
     Users  = new UserRepository(context, hostingEnvironment);
     Offers = new OffersRepository(context);
 }
 public AuthorsRepository(AuctionDbContext context)
 {
     _context = context;
 }
Beispiel #3
0
 public Seeder(AuctionDbContext context, UserManager <User> userManager, RoleManager <IdentityRole> roleManager)
 {
     _context     = context;
     _userManager = userManager;
     _roleManager = roleManager;
 }