コード例 #1
0
 public OrderService(
     ICustomerService customers,
     Data.TinyCrmDbContext context)
 {
     context_   = context;
     customers_ = customers;
 }
コード例 #2
0
 public OrderService(
     ICustomerService customers,
     IProductService products,
     Data.TinyCrmDbContext context)
 {
     context_   = context;
     customers_ = customers;
     products_  = products;
 }
コード例 #3
0
 public CustomerService(Data.TinyCrmDbContext context)
 {
     context_ = context ??
                throw new ArgumentException(nameof(context));
 }
コード例 #4
0
 public ProductService(Data.TinyCrmDbContext dbContext)
 {
     context = dbContext;
 }