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