public ShoppingCartController(IShoppingCartManager shoppingCartManager, UserManager <User> userManager, IProductService products, PartsCatalogDbContext db) { this.shoppingCartManager = shoppingCartManager; this.userManager = userManager; this.products = products; this.db = db; }
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; }
public CategoryService(PartsCatalogDbContext db) { this.db = db; }
public PartController(PartsCatalogDbContext context, PartService partService) { _context = context; _partService = partService; }
public ProductService(PartsCatalogDbContext db) { this.db = db; }
public OrderService(IProductService products, PartsCatalogDbContext db) { this._products = products; this.db = db; }
public Repository(PartsCatalogDbContext context) { _dbContext = context; _dbSet = _dbContext.Set <T>(); }
public PartService(PartsCatalogDbContext context, IConfiguration configuration) { _context = context; _configuration = configuration; }