public EntityFrameworkUnitOfWork( IEntityFrameworkContext context, ILogger logger) { _context = context; _logger = logger; }
public ErrorRecordDataService( IEntityFrameworkContext dbContext, DbContext rawContext) { _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); _rawContext = rawContext ?? throw new ArgumentNullException(nameof(rawContext)); }
public EntityFrameworkRepository(IRepositoryContext context) : base(context) { if (context is IEntityFrameworkContext) { this.efContext = context as IEntityFrameworkContext; } }
public AddProductValidator(IEntityFrameworkContext context) { _context = context; RuleFor(x => x.PartNumber).NotEmpty(); RuleFor(x => x.Price).GreaterThan(0); RuleFor(x => x.PartNumber).Must(NotAlreadyExist).WithMessage("PartNumber Already Exists"); }
public AddOrderValidator(IEntityFrameworkContext context) { _context = context; RuleFor(x => x.CustomerId).GreaterThan(0).WithMessage("Customer # not supplied"); RuleFor(x => x.PartNumber).NotEmpty().WithMessage("Part # not supplied"); RuleFor(x => x.Quantity).GreaterThan(0).WithMessage("Quantity must be greater than 0"); RuleFor(x => x.PartNumber).Must(ProductMustExist).WithMessage("Supplied Part # does not exist"); RuleFor(x => x.CustomerId).Must(CustomerMustExist).WithMessage("Supplied CustomerId does not exist"); }
public UnitOfWork( ILogger logger, IAzureBlobContext blobContext, IAzureTableContext tableContext, IAzureQueueContext queueContext, IEntityFrameworkContext entityContext) { _logger = logger; _blobContext = blobContext; _tableContext = tableContext; _queueContext = queueContext; _entityContext = entityContext; }
public DeleteOrderHandler(IMediator mediator, IEntityFrameworkContext context) { _mediator = mediator; _context = context; }
public RefundCustomerHandler(IEntityFrameworkContext context) { _context = context; }
public AddOrderHandler(IMediator mediator, IValidator <AddOrderRequest> validator, IEntityFrameworkContext context) { _mediator = mediator; _context = context; _validator = validator; }
public EntityFrameworkProductsService(IEntityFrameworkContext context) { this.context = context; }
public PeopleRepostiory(IEntityFrameworkContext context, IEntityFrameworkLogService logger, IEntityFrameworkMapper mapper) : base(context, logger, mapper) { }
public AddProductRequestHandler(IEntityFrameworkContext context) { _context = context; }
public EntityUnitOfWork(IEntityFrameworkContext context) { Context = context.GetConnection(); }
public EntityFrameworkChangeTracker(IEntityFrameworkContext efContext) { _efContext = efContext; }
public AddOrderHandler(IEntityFrameworkContext context) { _context = context; }