public ShoppingCartController(IShoppingCartManager shoppingCartManager,
                               UserManager <User> userManager,
                               IProductService products,
                               PartsCatalogDbContext db)
 {
     this.shoppingCartManager = shoppingCartManager;
     this.userManager         = userManager;
     this.products            = products;
     this.db = db;
 }
示例#2
0
        public ImageResize()
        {
            _config = new ConfigurationBuilder()
                      .AddJsonFile("appsettings.json", true, true)
                      .Build();

            //Program._config

            var contextBuilder = new DbContextOptionsBuilder <PartsCatalogDbContext>();

            contextBuilder.UseSqlServer(_config["ConnectionStrings:LegoCatalogDatabase"]);
            db = new PartsCatalogDbContext(contextBuilder.Options);
        }
 public PartController(PartsCatalogDbContext context)
 {
     _context = context;
 }
 public EventController(timeline_server_dotnet_data.PartsCatalogDbContext context)
 {
     _context = context;
 }
示例#5
0
 public CategoryService(PartsCatalogDbContext db)
 {
     this.db = db;
 }
示例#6
0
 public PartController(PartsCatalogDbContext context, PartService partService)
 {
     _context     = context;
     _partService = partService;
 }
示例#7
0
 public ProductService(PartsCatalogDbContext db)
 {
     this.db = db;
 }
示例#8
0
 public OrderService(IProductService products, PartsCatalogDbContext db)
 {
     this._products = products;
     this.db        = db;
 }
 public Repository(PartsCatalogDbContext context)
 {
     _dbContext = context;
     _dbSet     = _dbContext.Set <T>();
 }
示例#10
0
 public PartService(PartsCatalogDbContext context, IConfiguration configuration)
 {
     _context       = context;
     _configuration = configuration;
 }