public GetProductsFileQueryHandler(INorthwindDbContext context, ICsvFileBuilder fileBuilder, IMapper mapper, IDateTime dateTime) { _context = context; _fileBuilder = fileBuilder; _mapper = mapper; _dateTime = dateTime; }
public UpsertCategoryCommandValidator(INorthwindDbContext context) { _context = context; RuleFor(x => x.Name).MaximumLength(100).NotEmpty().NotNull(); RuleFor(x => x.Name) .Must(UniqueName) .WithMessage("Category name must be unique.");; }
public EfGenericRepository(INorthwindDbContext context) { if (context == null) { throw new ArgumentException("An instance of DbContext is required to use this repository.", "context"); } this.Context = context; this.DbSet = this.Context.Set <T>(); }
public CategoryRepository(IUnitOfWork uow) { _context = uow.Context as INorthwindDbContext; }
public Handler(INorthwindDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public CustomerRepository(IUnitOfWork uow) { _context = uow.Context as INorthwindDbContext; }
public GetCategoriesListQueryHandler(INorthwindDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public DeleteProductCommandHandler(INorthwindDbContext context) { _context = context; }
public Handler(INorthwindDbContext db) => _db = db;
public GetEmployeeDetailQueryHandler(INorthwindDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public GetCustomersMostPurchasedProductQueryHandler(INorthwindDbContext context) { _context = context; }
public UpdateCategoryCommandHandler(INorthwindDbContext dbContext, IMapper mapper) { _dbContext = dbContext; _mapper = mapper; }
public GetAllEmployeesQueryHandler(INorthwindDbContext context) { _context = context; }
public CreateFleetProductCommandHandler(INorthwindDbContext context) { _context = context; }
public GetSuppliersListQueryHandler(INorthwindDbContext dbContext, IMapper mapper) { _dbContext = dbContext; _mapper = mapper; }
public GetProductDetailQueryHandler(INorthwindDbContext dbContext, IMapper mapper) { _dbContext = dbContext; _mapper = mapper; }
public GetProductsListQueryHandler(IMapper mapper, INorthwindDbContext dbContext) { _mapper = mapper; _dbContext = dbContext; }
public OrdersRepository(IUnitOfWork uow) { _context = uow.Context as INorthwindDbContext; }
public DeleteCategoryCommandHandler(INorthwindDbContext context) { _context = context; }
public GetProductsListQueryHandler(INorthwindDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public CreateProductCommandHandler(INorthwindDbContext dbContext, IMapper mapper) { _dbContext = dbContext; _mapper = mapper; }
public UpsertEmployeeCommandHandler(INorthwindDbContext context) { _context = context; }
public GetCustomerDetailQueryHandler(INorthwindDbContext context) { _context = context; }
public ProductsRepository(IUnitOfWork uow) { _context = uow.Context as INorthwindDbContext; }
public DeleteEmployeeCommandHandler(INorthwindDbContext context, IUserManager userManager, ICurrentUserService currentUser) { _context = context; _userManager = userManager; _currentUser = currentUser; }
public DeleteCustomerCommandHandler(INorthwindDbContext context) { _context = context; }
public Handler(INorthwindDbContext context, IMediator mediator) { _context = context; _mediator = mediator; }
public GetProductQueryHandler(INorthwindDbContext context) { _context = context; }
public SeedSampleDataCommandHandler(INorthwindDbContext context, IUserManager userManager) { _context = context; _userManager = userManager; }
public Handler(INorthwindDbContext context) { _context = context; }
public GetAllProductsQueryHandler(INorthwindDbContext context, IMapper mapper, IOptions <ConnectionStringConfig> configAccessor) { _context = context; _mapper = mapper; _configAccessor = configAccessor; }
public UpsertCategoryCommandHandler(INorthwindDbContext context) { _context = context; }
public GetCustomerDetailQueryHandler(INorthwindDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public GetCategoryPreviewQueryHandler(INorthwindDbContext context) { _context = context; }