示例#1
0
 public OrderRepository(UsedGoodsDbContext dbContext, ILogger <ItemRepository> logger, IItemRepository repo)
 {
     _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
     _logger    = logger ?? throw new ArgumentNullException(nameof(logger));
     Repo       = repo ?? throw new ArgumentNullException(nameof(repo));
 }
示例#2
0
 public PersonRepository(UsedGoodsDbContext dbContext, ILogger <ItemRepository> logger)
 {
     _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
     _logger    = logger ?? throw new ArgumentNullException(nameof(logger));
 }