public EntityFrameworkCoreRepository( ITargetedFields targetedFields, IDbContextResolver contextResolver, IResourceGraph resourceGraph, IGenericServiceFactory genericServiceFactory, IResourceFactory resourceFactory, IEnumerable <IQueryConstraintProvider> constraintProviders, ILoggerFactory loggerFactory) { if (contextResolver == null) { throw new ArgumentNullException(nameof(contextResolver)); } if (loggerFactory == null) { throw new ArgumentNullException(nameof(loggerFactory)); } _targetedFields = targetedFields ?? throw new ArgumentNullException(nameof(targetedFields)); _resourceGraph = resourceGraph ?? throw new ArgumentNullException(nameof(resourceGraph)); _genericServiceFactory = genericServiceFactory ?? throw new ArgumentNullException(nameof(genericServiceFactory)); _resourceFactory = resourceFactory ?? throw new ArgumentNullException(nameof(resourceFactory)); _constraintProviders = constraintProviders ?? throw new ArgumentNullException(nameof(constraintProviders)); _dbContext = contextResolver.GetContext(); _traceWriter = new TraceLogWriter <EntityFrameworkCoreRepository <TResource, TId> >(loggerFactory); }
public DefaultResourceRepository( ITargetedFields targetedFields, IDbContextResolver contextResolver, IResourceGraph resourceGraph, IGenericServiceFactory genericServiceFactory) : this(targetedFields, contextResolver, resourceGraph, genericServiceFactory, null) { }
public DbContextARepository(ITargetedFields targetedFields, DbContextResolver <DbContextA> contextResolver, IResourceGraph resourceGraph, IGenericServiceFactory genericServiceFactory, IResourceFactory resourceFactory, IEnumerable <IQueryConstraintProvider> constraintProviders, ILoggerFactory loggerFactory) : base(targetedFields, contextResolver, resourceGraph, genericServiceFactory, resourceFactory, constraintProviders, loggerFactory) { }
public TestModelRepository( ITargetedFields targetedFields, IResourceGraph resourceGraph, IGenericServiceFactory genericServiceFactory, ILoggerFactory loggerFactory) : base(targetedFields, _dbContextResolver, resourceGraph, genericServiceFactory, loggerFactory) { }
public EditModel(ISalesOrderService salesOrderService, IGenericServiceFactory genericServiceFactory, ISalesOrderDetailService salesOrderDetailService) { _salesOrderService = salesOrderService; _genericServices = genericServiceFactory; _salesOrderDetailService = salesOrderDetailService; }
public HookExecutorHelper(IGenericServiceFactory genericProcessorFactory, IJsonApiOptions options) { _options = options; _genericProcessorFactory = genericProcessorFactory; _hookContainers = new Dictionary <RightType, IResourceHookContainer>(); _hookDiscoveries = new Dictionary <RightType, IHooksDiscovery>(); _targetedHooksForRelatedEntities = new List <ResourceHook>(); }
public HookContainerProvider(IGenericServiceFactory genericServiceFactory, IResourceContextProvider resourceContextProvider, IJsonApiOptions options) { _options = options; _genericServiceFactory = genericServiceFactory; _resourceContextProvider = resourceContextProvider; _hookContainers = new Dictionary <RightType, IResourceHookContainer>(); _hookDiscoveries = new Dictionary <RightType, IHooksDiscovery>(); _targetedHooksForRelatedResources = new List <ResourceHook>(); }
public DefaultResourceRepository( ITargetedFields targetedFields, IDbContextResolver contextResolver, IResourceGraph resourceGraph, IGenericServiceFactory genericServiceFactory, ILoggerFactory loggerFactory = null) { _targetedFields = targetedFields; _resourceGraph = resourceGraph; _genericServiceFactory = genericServiceFactory; _context = contextResolver.GetContext(); _dbSet = _context.Set <TResource>(); }
public ResultCapturingRepository( ITargetedFields targetedFields, IDbContextResolver contextResolver, IResourceGraph resourceGraph, IGenericServiceFactory genericServiceFactory, IResourceFactory resourceFactory, IEnumerable <IQueryConstraintProvider> constraintProviders, ILoggerFactory loggerFactory, ResourceCaptureStore captureStore) : base(targetedFields, contextResolver, resourceGraph, genericServiceFactory, resourceFactory, constraintProviders, loggerFactory) { _captureStore = captureStore; }
public DefaultResourceRepository( ITargetedFields targetedFields, IDbContextResolver contextResolver, IResourceGraph resourceGraph, IGenericServiceFactory genericServiceFactory, ILoggerFactory loggerFactory) { _targetedFields = targetedFields; _resourceGraph = resourceGraph; _genericServiceFactory = genericServiceFactory; _context = contextResolver.GetContext(); _dbSet = _context.Set <TResource>(); _logger = loggerFactory.CreateLogger <DefaultResourceRepository <TResource, TId> >(); _logger.LogTrace("Executing constructor."); }
public EntityFrameworkCoreRepository( ITargetedFields targetedFields, IDbContextResolver contextResolver, IResourceGraph resourceGraph, IGenericServiceFactory genericServiceFactory, IResourceFactory resourceFactory, IEnumerable <IQueryConstraintProvider> constraintProviders, ILoggerFactory loggerFactory) { _targetedFields = targetedFields; _resourceGraph = resourceGraph; _genericServiceFactory = genericServiceFactory; _resourceFactory = resourceFactory; _constraintProviders = constraintProviders; _dbContext = contextResolver.GetContext(); _logger = loggerFactory.CreateLogger <EntityFrameworkCoreRepository <TResource, TId> >(); }
public OrderReportService(IGenericServiceFactory genericService, OrderContext context) { _genericService = genericService; _context = context; }
public CreateModel(ISalesOrderService salesOrderService, IGenericServiceFactory genericServiceFactory) { _salesOrderService = salesOrderService; _genericServices = genericServiceFactory; }