Пример #1
0
 public PortfolioSeeder(PortfolioContext ctx
                        , IHostingEnvironment hosting
                        , UserManager <PortfolioUser> userManager)
 {
     _ctx         = ctx;
     _hosting     = hosting;
     _userManager = userManager;
 }
Пример #2
0
 public PortfolioUow(PortfolioContext context, IRepositoryProvider repositoryProvider)
 {
     _context = context;
     repositoryProvider.DbContext = context;
     RepositoryProvider           = repositoryProvider;
 }
Пример #3
0
 public OrdersRepository(PortfolioContext dbContext) : base(dbContext)
 {
 }
 public ProductsRepository(PortfolioContext dbContext) : base(dbContext)
 {
 }
 public ProductsRepository(PortfolioContext dbContext, ILogger <ProductsRepository> logger) : base(dbContext)
 {
     _logger = logger;
 }
Пример #6
0
 public EFRepository(PortfolioContext dbContext)
 {
     DbContext = dbContext ?? throw new ArgumentNullException("dbContext");
     DbSet     = DbContext.Set <T>();
 }