示例#1
0
 public ProductController(MariContext context)
 {
     _context = context;
     if (_context.Products.Count() == 0)
     {
         _context.Products.Add(new Product {
             ID = 1, NameEN = "Dummy", Code = "DUMMY"
         });
         _context.SaveChanges();
     }
 }
示例#2
0
 public OrderService(IOptions <AppSettings> appSettings, MariContext context, IHttpContextAccessor httpContextAccessor)
 {
     _appSettings         = appSettings.Value;
     _context             = context;
     _httpContextAccessor = httpContextAccessor;
 }
 public ProductPriceController(MariContext context)
 {
     _context = context;
 }
示例#4
0
 public UserService(IOptions <AppSettings> appSettings, MariContext context, ILogger <UserService> logger)
 {
     _appSettings = appSettings.Value;
     _context     = context;
     _logger      = logger;
 }
 public OrderDetailController(MariContext context)
 {
     _context = context;
 }
 public OrderPoolController(MariContext context)
 {
     _context = context;
 }
示例#7
0
 public SupplierController(MariContext context)
 {
     _context = context;
 }
示例#8
0
 public CustomerController(MariContext context)
 {
     _context = context;
 }
示例#9
0
 public InvoiceController(MariContext context)
 {
     _context = context;
 }