public EntityTrackingInfoFactory( [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrAccessorSource<IClrPropertyGetter> clrPropertyGetterSource) { _entityKeyFactorySource = entityKeyFactorySource; _clrPropertyGetterSource = clrPropertyGetterSource; }
public SqlServerQueryCompilationContext( [NotNull] IModel model, [NotNull] ILogger logger, [NotNull] ILinqOperatorProvider linqOperatorProvider, [NotNull] IResultOperatorHandler resultOperatorHandler, [NotNull] IEntityMaterializerSource entityMaterializerSource, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrAccessorSource <IClrPropertyGetter> clrPropertyGetterSource, [NotNull] IQueryMethodProvider queryMethodProvider, [NotNull] IMethodCallTranslator compositeMethodCallTranslator, [NotNull] IMemberTranslator compositeMemberTranslator, [NotNull] IRelationalValueBufferFactoryFactory valueBufferFactoryFactory, [NotNull] IRelationalTypeMapper typeMapper, [NotNull] IRelationalMetadataExtensionProvider relationalExtensions) : base( model, logger, linqOperatorProvider, resultOperatorHandler, entityMaterializerSource, entityKeyFactorySource, clrPropertyGetterSource, queryMethodProvider, compositeMethodCallTranslator, compositeMemberTranslator, valueBufferFactoryFactory, typeMapper, relationalExtensions) { }
public RelationalQueryCompilationContext( [NotNull] IModel model, [NotNull] ILogger logger, [NotNull] ILinqOperatorProvider linqOperatorProvider, [NotNull] IResultOperatorHandler resultOperatorHandler, [NotNull] IEntityMaterializerSource entityMaterializerSource, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrAccessorSource <IClrPropertyGetter> clrPropertyGetterSource, [NotNull] IQueryMethodProvider queryMethodProvider, [NotNull] IMethodCallTranslator methodCallTranslator, [NotNull] IRelationalValueBufferFactoryFactory valueBufferFactoryFactory) : base( Check.NotNull(model, nameof(model)), Check.NotNull(logger, nameof(logger)), Check.NotNull(linqOperatorProvider, nameof(linqOperatorProvider)), Check.NotNull(resultOperatorHandler, nameof(resultOperatorHandler)), Check.NotNull(entityMaterializerSource, nameof(entityMaterializerSource)), Check.NotNull(entityKeyFactorySource, nameof(entityKeyFactorySource)), Check.NotNull(clrPropertyGetterSource, nameof(clrPropertyGetterSource))) { Check.NotNull(queryMethodProvider, nameof(queryMethodProvider)); Check.NotNull(methodCallTranslator, nameof(methodCallTranslator)); Check.NotNull(valueBufferFactoryFactory, nameof(valueBufferFactoryFactory)); QueryMethodProvider = queryMethodProvider; MethodCallTranslator = methodCallTranslator; ValueBufferFactoryFactory = valueBufferFactoryFactory; }
public EntityTrackingInfoFactory( [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrAccessorSource <IClrPropertyGetter> clrPropertyGetterSource) { _entityKeyFactorySource = entityKeyFactorySource; _clrPropertyGetterSource = clrPropertyGetterSource; }
public FakeRelationalDatabase( IModel model, IEntityKeyFactorySource entityKeyFactorySource, IEntityMaterializerSource entityMaterializerSource, IClrAccessorSource <IClrPropertyGetter> clrPropertyGetterSource, IRelationalConnection connection, ICommandBatchPreparer batchPreparer, IBatchExecutor batchExecutor, IDbContextOptions options, ILoggerFactory loggerFactory, IRelationalValueBufferFactoryFactory valueBufferFactoryFactory, IMethodCallTranslator compositeMethodCallTranslator, IMemberTranslator compositeMemberTranslator, IRelationalTypeMapper typeMapper) : base( model, entityKeyFactorySource, entityMaterializerSource, clrPropertyGetterSource, connection, batchPreparer, batchExecutor, options, loggerFactory, valueBufferFactoryFactory, compositeMethodCallTranslator, compositeMemberTranslator, typeMapper) { }
protected RelationalDataStore( [NotNull] IModel model, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IEntityMaterializerSource entityMaterializerSource, [NotNull] IClrAccessorSource <IClrPropertyGetter> clrPropertyGetterSource, [NotNull] IRelationalConnection connection, [NotNull] ICommandBatchPreparer batchPreparer, [NotNull] IBatchExecutor batchExecutor, [NotNull] IEntityOptions options, [NotNull] ILoggerFactory loggerFactory, [NotNull] IRelationalValueBufferFactoryFactory valueBufferFactoryFactory) : base( Check.NotNull(model, nameof(model)), Check.NotNull(entityKeyFactorySource, nameof(entityKeyFactorySource)), Check.NotNull(entityMaterializerSource, nameof(entityMaterializerSource)), Check.NotNull(clrPropertyGetterSource, nameof(clrPropertyGetterSource)), Check.NotNull(loggerFactory, nameof(loggerFactory))) { Check.NotNull(connection, nameof(connection)); Check.NotNull(batchPreparer, nameof(batchPreparer)); Check.NotNull(batchExecutor, nameof(batchExecutor)); Check.NotNull(options, nameof(options)); Check.NotNull(options, nameof(options)); Check.NotNull(valueBufferFactoryFactory, nameof(valueBufferFactoryFactory)); _batchPreparer = batchPreparer; _batchExecutor = batchExecutor; _connection = connection; _options = options; ValueBufferFactoryFactory = valueBufferFactoryFactory; }
public RelationalQueryCompilationContext( [NotNull] IModel model, [NotNull] ILogger logger, [NotNull] ILinqOperatorProvider linqOperatorProvider, [NotNull] IResultOperatorHandler resultOperatorHandler, [NotNull] IEntityMaterializerSource entityMaterializerSource, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrAccessorSource <IClrPropertyGetter> clrPropertyGetterSource, [NotNull] IQueryMethodProvider queryMethodProvider, [NotNull] IMethodCallTranslator compositeMethodCallTranslator, [NotNull] IMemberTranslator compositeMemberTranslator, [NotNull] IRelationalValueBufferFactoryFactory valueBufferFactoryFactory, [NotNull] IRelationalTypeMapper typeMapper) : base( model, logger, linqOperatorProvider, resultOperatorHandler, entityMaterializerSource, entityKeyFactorySource, clrPropertyGetterSource) { Check.NotNull(queryMethodProvider, nameof(queryMethodProvider)); Check.NotNull(compositeMethodCallTranslator, nameof(compositeMethodCallTranslator)); Check.NotNull(compositeMemberTranslator, nameof(compositeMemberTranslator)); Check.NotNull(valueBufferFactoryFactory, nameof(valueBufferFactoryFactory)); Check.NotNull(typeMapper, nameof(typeMapper)); QueryMethodProvider = queryMethodProvider; CompositeMethodCallTranslator = compositeMethodCallTranslator; CompositeMemberTranslator = compositeMemberTranslator; ValueBufferFactoryFactory = valueBufferFactoryFactory; TypeMapper = typeMapper; }
protected QueryCompilationContext( [NotNull] IModel model, [NotNull] ILogger logger, [NotNull] ILinqOperatorProvider linqOperatorProvider, [NotNull] IResultOperatorHandler resultOperatorHandler, [NotNull] IEntityMaterializerSource entityMaterializerSource, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrAccessorSource <IClrPropertyGetter> clrPropertyGetterSource) { Check.NotNull(model, nameof(model)); Check.NotNull(logger, nameof(logger)); Check.NotNull(linqOperatorProvider, nameof(linqOperatorProvider)); Check.NotNull(resultOperatorHandler, nameof(resultOperatorHandler)); Check.NotNull(entityMaterializerSource, nameof(entityMaterializerSource)); Check.NotNull(entityKeyFactorySource, nameof(entityKeyFactorySource)); Check.NotNull(clrPropertyGetterSource, nameof(clrPropertyGetterSource)); Model = model; Logger = logger; LinqOperatorProvider = linqOperatorProvider; ResultOperatorHandler = resultOperatorHandler; EntityMaterializerSource = entityMaterializerSource; EntityKeyFactorySource = entityKeyFactorySource; ClrPropertyGetterSource = clrPropertyGetterSource; }
public SqlServerDatabase( [NotNull] IModel model, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IEntityMaterializerSource entityMaterializerSource, [NotNull] IClrAccessorSource <IClrPropertyGetter> clrPropertyGetterSource, [NotNull] ISqlServerConnection connection, [NotNull] ICommandBatchPreparer batchPreparer, [NotNull] IBatchExecutor batchExecutor, [NotNull] IDbContextOptions options, [NotNull] ILoggerFactory loggerFactory, [NotNull] IRelationalValueBufferFactoryFactory valueBufferFactoryFactory, [NotNull] IMethodCallTranslator compositeMethodCallTranslator, [NotNull] IMemberTranslator compositeMemberTranslator, [NotNull] IRelationalTypeMapper typeMapper, [NotNull] IRelationalMetadataExtensionProvider relationalExtensions) : base( model, entityKeyFactorySource, entityMaterializerSource, clrPropertyGetterSource, connection, batchPreparer, batchExecutor, options, loggerFactory, valueBufferFactoryFactory, compositeMethodCallTranslator, compositeMemberTranslator, typeMapper, relationalExtensions) { }
public InMemoryDataStore( [NotNull] IModel model, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IEntityMaterializerSource entityMaterializerSource, [NotNull] IClrAccessorSource <IClrPropertyGetter> clrPropertyGetterSource, [NotNull] IInMemoryDatabase persistentDatabase, [NotNull] IEntityOptions options, [NotNull] ILoggerFactory loggerFactory) : base( Check.NotNull(model, nameof(model)), Check.NotNull(entityKeyFactorySource, nameof(entityKeyFactorySource)), Check.NotNull(entityMaterializerSource, nameof(entityMaterializerSource)), Check.NotNull(clrPropertyGetterSource, nameof(clrPropertyGetterSource)), Check.NotNull(loggerFactory, nameof(loggerFactory))) { Check.NotNull(persistentDatabase, nameof(persistentDatabase)); var storeConfig = options.Extensions .OfType <InMemoryOptionsExtension>() .FirstOrDefault(); _persist = storeConfig?.Persist ?? true; _database = new ThreadSafeLazyRef <IInMemoryDatabase>( () => _persist ? persistentDatabase : new InMemoryDatabase(loggerFactory)); }
public KeyPropagator( [NotNull] IClrAccessorSource <IClrPropertyGetter> getterSource, [NotNull] IClrCollectionAccessorSource collectionAccessorSource, [NotNull] IValueGeneratorSelector valueGeneratorSelector) { _getterSource = getterSource; _collectionAccessorSource = collectionAccessorSource; _valueGeneratorSelector = valueGeneratorSelector; }
public KeyPropagator( [NotNull] IClrAccessorSource<IClrPropertyGetter> getterSource, [NotNull] IClrCollectionAccessorSource collectionAccessorSource, [NotNull] IValueGeneratorSelector valueGeneratorSelector) { _getterSource = getterSource; _collectionAccessorSource = collectionAccessorSource; _valueGeneratorSelector = valueGeneratorSelector; }
public DbSetInitializer( [NotNull] IDbSetFinder setFinder, [NotNull] IClrAccessorSource <IClrPropertySetter> setSetters, [NotNull] IDbSetSource setSource) { _setFinder = setFinder; _setSetters = setSetters; _setSource = setSource; }
public TestSqlServerQueryContextFactory( IStateManager stateManager, IEntityKeyFactorySource entityKeyFactorySource, IClrCollectionAccessorSource collectionAccessorSource, IClrAccessorSource <IClrPropertySetter> propertySetterSource, ISqlServerConnection connection, ILoggerFactory loggerFactory) : base(stateManager, entityKeyFactorySource, collectionAccessorSource, propertySetterSource, connection, loggerFactory) { }
public NpgsqlQueryContextFactory( [NotNull] IStateManager stateManager, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrCollectionAccessorSource collectionAccessorSource, [NotNull] IClrAccessorSource <IClrPropertySetter> propertySetterSource, [NotNull] INpgsqlEFConnection connection, [NotNull] ILoggerFactory loggerFactory) : base(stateManager, entityKeyFactorySource, collectionAccessorSource, propertySetterSource, connection, loggerFactory) { }
public RelationalQueryContextFactory( [NotNull] IStateManager stateManager, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrCollectionAccessorSource collectionAccessorSource, [NotNull] IClrAccessorSource <IClrPropertySetter> propertySetterSource, [NotNull] IRelationalConnection connection) : base(stateManager, entityKeyFactorySource, collectionAccessorSource, propertySetterSource) { _connection = connection; }
public QueryBuffer( [NotNull] IStateManager stateManager, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrCollectionAccessorSource clrCollectionAccessorSource, [NotNull] IClrAccessorSource <IClrPropertySetter> clrPropertySetterSource) { _stateManager = stateManager; _entityKeyFactorySource = entityKeyFactorySource; _clrCollectionAccessorSource = clrCollectionAccessorSource; _clrPropertySetterSource = clrPropertySetterSource; }
public NavigationFixer( [NotNull] IClrAccessorSource<IClrPropertyGetter> getterSource, [NotNull] IClrAccessorSource<IClrPropertySetter> setterSource, [NotNull] IClrCollectionAccessorSource collectionAccessorSource, [NotNull] IModel model) { _getterSource = getterSource; _setterSource = setterSource; _collectionAccessorSource = collectionAccessorSource; _model = model; }
public QueryBuffer( [NotNull] IStateManager stateManager, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrCollectionAccessorSource clrCollectionAccessorSource, [NotNull] IClrAccessorSource<IClrPropertySetter> clrPropertySetterSource) { _stateManager = stateManager; _entityKeyFactorySource = entityKeyFactorySource; _clrCollectionAccessorSource = clrCollectionAccessorSource; _clrPropertySetterSource = clrPropertySetterSource; }
public NavigationFixer( [NotNull] IClrAccessorSource <IClrPropertyGetter> getterSource, [NotNull] IClrAccessorSource <IClrPropertySetter> setterSource, [NotNull] IClrCollectionAccessorSource collectionAccessorSource, [NotNull] IModel model) { _getterSource = getterSource; _setterSource = setterSource; _collectionAccessorSource = collectionAccessorSource; _model = model; }
public InMemoryQueryContextFactory( [NotNull] IStateManager stateManager, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrCollectionAccessorSource collectionAccessorSource, [NotNull] IClrAccessorSource <IClrPropertySetter> propertySetterSource, [NotNull] IInMemoryDatabase database) : base(stateManager, entityKeyFactorySource, collectionAccessorSource, propertySetterSource) { Check.NotNull(database, nameof(database)); _database = database; }
public RelationalQueryContextFactory( [NotNull] IStateManager stateManager, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrCollectionAccessorSource collectionAccessorSource, [NotNull] IClrAccessorSource <IClrPropertySetter> propertySetterSource, [NotNull] IRelationalConnection connection, [NotNull] ILoggerFactory loggerFactory) : base(stateManager, entityKeyFactorySource, collectionAccessorSource, propertySetterSource, loggerFactory) { Check.NotNull(connection, nameof(connection)); _connection = connection; }
public EntityTrackingInfo( [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrAccessorSource<IClrPropertyGetter> clrPropertyGetterSource, [NotNull] QueryCompilationContext queryCompilationContext, [NotNull] QuerySourceReferenceExpression querySourceReferenceExpression, [NotNull] IEntityType entityType) { Check.NotNull(entityKeyFactorySource, nameof(entityKeyFactorySource)); Check.NotNull(clrPropertyGetterSource, nameof(clrPropertyGetterSource)); Check.NotNull(querySourceReferenceExpression, nameof(querySourceReferenceExpression)); Check.NotNull(entityType, nameof(entityType)); Check.NotNull(queryCompilationContext, nameof(queryCompilationContext)); QuerySourceReferenceExpression = querySourceReferenceExpression; _entityType = entityType; _queryCompilationContext = queryCompilationContext; _entityKeyFactorySource = entityKeyFactorySource; _clrPropertyGetterSource = clrPropertyGetterSource; _entityKeyProperties = _entityType.GetPrimaryKey().Properties; _entityKeyFactory = _entityKeyFactorySource.GetKeyFactory(_entityType.GetPrimaryKey()); _includedNavigationPaths = _queryCompilationContext .GetTrackableIncludes(querySourceReferenceExpression.ReferencedQuerySource); if (_includedNavigationPaths != null) { _includedEntityTrackingInfos = new Dictionary<INavigation, IncludedEntityTrackingInfo>(); foreach (var navigation in _includedNavigationPaths.SelectMany(ns => ns)) { if (!_includedEntityTrackingInfos.ContainsKey(navigation)) { var targetEntityType = navigation.GetTargetType(); var targetKey = targetEntityType.GetPrimaryKey(); _includedEntityTrackingInfos.Add( navigation, new IncludedEntityTrackingInfo( targetEntityType, _entityKeyFactorySource.GetKeyFactory(targetKey), targetKey.Properties)); } } } }
public EntityTrackingInfo( [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrAccessorSource <IClrPropertyGetter> clrPropertyGetterSource, [NotNull] QueryCompilationContext queryCompilationContext, [NotNull] QuerySourceReferenceExpression querySourceReferenceExpression, [NotNull] IEntityType entityType) { Check.NotNull(entityKeyFactorySource, nameof(entityKeyFactorySource)); Check.NotNull(clrPropertyGetterSource, nameof(clrPropertyGetterSource)); Check.NotNull(querySourceReferenceExpression, nameof(querySourceReferenceExpression)); Check.NotNull(entityType, nameof(entityType)); Check.NotNull(queryCompilationContext, nameof(queryCompilationContext)); QuerySourceReferenceExpression = querySourceReferenceExpression; _entityType = entityType; _queryCompilationContext = queryCompilationContext; _entityKeyFactorySource = entityKeyFactorySource; _clrPropertyGetterSource = clrPropertyGetterSource; _entityKeyProperties = _entityType.GetPrimaryKey().Properties; _entityKeyFactory = _entityKeyFactorySource.GetKeyFactory(_entityType.GetPrimaryKey()); _includedNavigationPaths = _queryCompilationContext .GetTrackableIncludes(querySourceReferenceExpression.ReferencedQuerySource); if (_includedNavigationPaths != null) { _includedEntityTrackingInfos = new Dictionary <INavigation, IncludedEntityTrackingInfo>(); foreach (var navigation in _includedNavigationPaths.SelectMany(ns => ns)) { if (!_includedEntityTrackingInfos.ContainsKey(navigation)) { var targetEntityType = navigation.GetTargetType(); var targetKey = targetEntityType.GetPrimaryKey(); _includedEntityTrackingInfos.Add( navigation, new IncludedEntityTrackingInfo( targetEntityType, _entityKeyFactorySource.GetKeyFactory(targetKey), targetKey.Properties)); } } } }
public EntityEntryMetadataServices( [NotNull] IClrAccessorSource <IClrPropertyGetter> getterSource, [NotNull] IClrAccessorSource <IClrPropertySetter> setterSource, [NotNull] IOriginalValuesFactory originalValuesFactory, [NotNull] IRelationshipsSnapshotFactory relationshipsSnapshotFactory, [NotNull] IStoreGeneratedValuesFactory storeGeneratedValuesFactory, [NotNull] IEntityKeyFactorySource entityKeyFactorySource) { _getterSource = getterSource; _setterSource = setterSource; _originalValuesFactory = originalValuesFactory; _relationshipsSnapshotFactory = relationshipsSnapshotFactory; _storeGeneratedValuesFactory = storeGeneratedValuesFactory; _entityKeyFactorySource = entityKeyFactorySource; }
public EntityEntryMetadataServices( [NotNull] IClrAccessorSource<IClrPropertyGetter> getterSource, [NotNull] IClrAccessorSource<IClrPropertySetter> setterSource, [NotNull] IOriginalValuesFactory originalValuesFactory, [NotNull] IRelationshipsSnapshotFactory relationshipsSnapshotFactory, [NotNull] IStoreGeneratedValuesFactory storeGeneratedValuesFactory, [NotNull] IEntityKeyFactorySource entityKeyFactorySource) { _getterSource = getterSource; _setterSource = setterSource; _originalValuesFactory = originalValuesFactory; _relationshipsSnapshotFactory = relationshipsSnapshotFactory; _storeGeneratedValuesFactory = storeGeneratedValuesFactory; _entityKeyFactorySource = entityKeyFactorySource; }
public QueryBuffer( [NotNull] IStateManager stateManager, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrCollectionAccessorSource clrCollectionAccessorSource, [NotNull] IClrAccessorSource<IClrPropertySetter> clrPropertySetterSource) { Check.NotNull(stateManager, nameof(stateManager)); Check.NotNull(entityKeyFactorySource, nameof(entityKeyFactorySource)); Check.NotNull(clrCollectionAccessorSource, nameof(clrCollectionAccessorSource)); Check.NotNull(clrPropertySetterSource, nameof(clrPropertySetterSource)); _stateManager = stateManager; _entityKeyFactorySource = entityKeyFactorySource; _clrCollectionAccessorSource = clrCollectionAccessorSource; _clrPropertySetterSource = clrPropertySetterSource; }
protected QueryContextFactory( [NotNull] IStateManager stateManager, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrCollectionAccessorSource collectionAccessorSource, [NotNull] IClrAccessorSource<IClrPropertySetter> propertySetterSource) { Check.NotNull(stateManager, nameof(stateManager)); Check.NotNull(entityKeyFactorySource, nameof(entityKeyFactorySource)); Check.NotNull(collectionAccessorSource, nameof(collectionAccessorSource)); Check.NotNull(propertySetterSource, nameof(propertySetterSource)); _stateManager = stateManager; _entityKeyFactorySource = entityKeyFactorySource; _collectionAccessorSource = collectionAccessorSource; _propertySetterSource = propertySetterSource; }
public QueryBuffer( [NotNull] IStateManager stateManager, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrCollectionAccessorSource clrCollectionAccessorSource, [NotNull] IClrAccessorSource <IClrPropertySetter> clrPropertySetterSource) { Check.NotNull(stateManager, nameof(stateManager)); Check.NotNull(entityKeyFactorySource, nameof(entityKeyFactorySource)); Check.NotNull(clrCollectionAccessorSource, nameof(clrCollectionAccessorSource)); Check.NotNull(clrPropertySetterSource, nameof(clrPropertySetterSource)); _stateManager = stateManager; _entityKeyFactorySource = entityKeyFactorySource; _clrCollectionAccessorSource = clrCollectionAccessorSource; _clrPropertySetterSource = clrPropertySetterSource; }
protected QueryContextFactory( [NotNull] IStateManager stateManager, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrCollectionAccessorSource collectionAccessorSource, [NotNull] IClrAccessorSource <IClrPropertySetter> propertySetterSource) { Check.NotNull(stateManager, nameof(stateManager)); Check.NotNull(entityKeyFactorySource, nameof(entityKeyFactorySource)); Check.NotNull(collectionAccessorSource, nameof(collectionAccessorSource)); Check.NotNull(propertySetterSource, nameof(propertySetterSource)); _stateManager = stateManager; _entityKeyFactorySource = entityKeyFactorySource; _collectionAccessorSource = collectionAccessorSource; _propertySetterSource = propertySetterSource; }
public InMemoryQueryCompilationContext( [NotNull] IModel model, [NotNull] ILogger logger, [NotNull] IEntityMaterializerSource entityMaterializerSource, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrAccessorSource <IClrPropertyGetter> clrPropertyGetterSource) : base( Check.NotNull(model, nameof(model)), Check.NotNull(logger, nameof(logger)), new LinqOperatorProvider(), new ResultOperatorHandler(), Check.NotNull(entityMaterializerSource, nameof(entityMaterializerSource)), Check.NotNull(entityKeyFactorySource, nameof(entityKeyFactorySource)), Check.NotNull(clrPropertyGetterSource, nameof(clrPropertyGetterSource))) { }
protected RelationalDatabase( [NotNull] IModel model, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IEntityMaterializerSource entityMaterializerSource, [NotNull] IClrAccessorSource <IClrPropertyGetter> clrPropertyGetterSource, [NotNull] IRelationalConnection connection, [NotNull] ICommandBatchPreparer batchPreparer, [NotNull] IBatchExecutor batchExecutor, [NotNull] IDbContextOptions options, [NotNull] ILoggerFactory loggerFactory, [NotNull] IRelationalValueBufferFactoryFactory valueBufferFactoryFactory, [NotNull] IMethodCallTranslator compositeMethodCallTranslator, [NotNull] IMemberTranslator compositeMemberTranslator, [NotNull] IRelationalTypeMapper typeMapper, [NotNull] IRelationalMetadataExtensionProvider relationalExtensions) : base(model, loggerFactory) { Check.NotNull(entityKeyFactorySource, nameof(entityKeyFactorySource)); Check.NotNull(entityMaterializerSource, nameof(entityMaterializerSource)); Check.NotNull(clrPropertyGetterSource, nameof(clrPropertyGetterSource)); Check.NotNull(connection, nameof(connection)); Check.NotNull(batchPreparer, nameof(batchPreparer)); Check.NotNull(batchExecutor, nameof(batchExecutor)); Check.NotNull(options, nameof(options)); Check.NotNull(valueBufferFactoryFactory, nameof(valueBufferFactoryFactory)); Check.NotNull(compositeMethodCallTranslator, nameof(compositeMethodCallTranslator)); Check.NotNull(compositeMemberTranslator, nameof(compositeMemberTranslator)); Check.NotNull(typeMapper, nameof(typeMapper)); Check.NotNull(relationalExtensions, nameof(relationalExtensions)); EntityKeyFactorySource = entityKeyFactorySource; EntityMaterializerSource = entityMaterializerSource; ClrPropertyGetterSource = clrPropertyGetterSource; _batchPreparer = batchPreparer; _batchExecutor = batchExecutor; _connection = connection; _options = options; _compositeMethodCallTranslator = compositeMethodCallTranslator; _compositeMemberTranslator = compositeMemberTranslator; TypeMapper = typeMapper; ValueBufferFactoryFactory = valueBufferFactoryFactory; RelationalExtensions = relationalExtensions; }
protected QueryContextFactory( [NotNull] IStateManager stateManager, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrCollectionAccessorSource collectionAccessorSource, [NotNull] IClrAccessorSource <IClrPropertySetter> propertySetterSource, [NotNull] ILoggerFactory loggerFactory) { Check.NotNull(stateManager, nameof(stateManager)); Check.NotNull(entityKeyFactorySource, nameof(entityKeyFactorySource)); Check.NotNull(collectionAccessorSource, nameof(collectionAccessorSource)); Check.NotNull(propertySetterSource, nameof(propertySetterSource)); Check.NotNull(loggerFactory, nameof(loggerFactory)); _stateManager = stateManager; _entityKeyFactorySource = entityKeyFactorySource; _collectionAccessorSource = collectionAccessorSource; _propertySetterSource = propertySetterSource; _logger = new LazyRef <ILogger>(loggerFactory.CreateLogger <QueryContextFactory>); }
protected QueryContextFactory( [NotNull] IStateManager stateManager, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrCollectionAccessorSource collectionAccessorSource, [NotNull] IClrAccessorSource<IClrPropertySetter> propertySetterSource, [NotNull] ILoggerFactory loggerFactory) { Check.NotNull(stateManager, nameof(stateManager)); Check.NotNull(entityKeyFactorySource, nameof(entityKeyFactorySource)); Check.NotNull(collectionAccessorSource, nameof(collectionAccessorSource)); Check.NotNull(propertySetterSource, nameof(propertySetterSource)); Check.NotNull(loggerFactory, nameof(loggerFactory)); _stateManager = stateManager; _entityKeyFactorySource = entityKeyFactorySource; _collectionAccessorSource = collectionAccessorSource; _propertySetterSource = propertySetterSource; _logger = new LazyRef<ILogger>(loggerFactory.CreateLogger<QueryContextFactory>); }
protected DataStore( [NotNull] IModel model, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IEntityMaterializerSource entityMaterializerSource, [NotNull] IClrAccessorSource <IClrPropertyGetter> clrPropertyGetterSource, [NotNull] ILoggerFactory loggerFactory) { Check.NotNull(model, nameof(model)); Check.NotNull(entityKeyFactorySource, nameof(entityKeyFactorySource)); Check.NotNull(entityMaterializerSource, nameof(entityMaterializerSource)); Check.NotNull(clrPropertyGetterSource, nameof(clrPropertyGetterSource)); Check.NotNull(loggerFactory, nameof(loggerFactory)); Model = model; EntityKeyFactorySource = entityKeyFactorySource; EntityMaterializerSource = entityMaterializerSource; ClrPropertyGetterSource = clrPropertyGetterSource; _logger = new LazyRef <ILogger>(loggerFactory.CreateLogger <DataStore>); }
public FakeRelationalDataStore( IModel model, IEntityKeyFactorySource entityKeyFactorySource, IEntityMaterializerSource entityMaterializerSource, IClrAccessorSource <IClrPropertyGetter> clrPropertyGetterSource, IRelationalConnection connection, ICommandBatchPreparer batchPreparer, IBatchExecutor batchExecutor, IEntityOptions options, ILoggerFactory loggerFactory, IRelationalValueBufferFactoryFactory valueBufferFactoryFactory) : base( model, entityKeyFactorySource, entityMaterializerSource, clrPropertyGetterSource, connection, batchPreparer, batchExecutor, options, loggerFactory, valueBufferFactoryFactory) { }
public FakeRelationalDataStore( IModel model, IEntityKeyFactorySource entityKeyFactorySource, IEntityMaterializerSource entityMaterializerSource, IClrAccessorSource<IClrPropertyGetter> clrPropertyGetterSource, IRelationalConnection connection, ICommandBatchPreparer batchPreparer, IBatchExecutor batchExecutor, IEntityOptions options, ILoggerFactory loggerFactory, IRelationalValueBufferFactoryFactory valueBufferFactoryFactory) : base( model, entityKeyFactorySource, entityMaterializerSource, clrPropertyGetterSource, connection, batchPreparer, batchExecutor, options, loggerFactory, valueBufferFactoryFactory) { }
public SqliteQueryCompilationContext( [NotNull] IModel model, [NotNull] ILogger logger, [NotNull] ILinqOperatorProvider linqOperatorProvider, [NotNull] IResultOperatorHandler resultOperatorHandler, [NotNull] IEntityMaterializerSource entityMaterializerSource, [NotNull] IClrAccessorSource <IClrPropertyGetter> clrPropertyGetterSource, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IQueryMethodProvider queryMethodProvider, [NotNull] IMethodCallTranslator methodCallTranslator, [NotNull] IRelationalValueBufferFactoryFactory valueBufferFactoryFactory) : base( model, logger, linqOperatorProvider, resultOperatorHandler, entityMaterializerSource, entityKeyFactorySource, clrPropertyGetterSource, queryMethodProvider, methodCallTranslator, valueBufferFactoryFactory) { }
public NpgsqlDataStore( [NotNull] IModel model, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IEntityMaterializerSource entityMaterializerSource, [NotNull] IClrAccessorSource <IClrPropertyGetter> clrPropertyGetterSource, [NotNull] INpgsqlEFConnection connection, [NotNull] INpgsqlCommandBatchPreparer batchPreparer, [NotNull] INpgsqlBatchExecutor batchExecutor, [NotNull] IDbContextOptions options, [NotNull] ILoggerFactory loggerFactory, [NotNull] INpgsqlValueBufferFactoryFactory valueBufferFactoryFactory) : base( Check.NotNull(model, nameof(model)), Check.NotNull(entityKeyFactorySource, nameof(entityKeyFactorySource)), Check.NotNull(entityMaterializerSource, nameof(entityMaterializerSource)), Check.NotNull(clrPropertyGetterSource, nameof(clrPropertyGetterSource)), Check.NotNull(connection, nameof(connection)), Check.NotNull(batchPreparer, nameof(batchPreparer)), Check.NotNull(batchExecutor, nameof(batchExecutor)), Check.NotNull(options, nameof(options)), Check.NotNull(loggerFactory, nameof(loggerFactory)), Check.NotNull(valueBufferFactoryFactory, nameof(valueBufferFactoryFactory))) { }
public SqliteDataStore( [NotNull] IModel model, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IEntityMaterializerSource entityMaterializerSource, [NotNull] IClrAccessorSource <IClrPropertyGetter> clrPropertyGetterSource, [NotNull] IRelationalConnection connection, [NotNull] ICommandBatchPreparer batchPreparer, [NotNull] IBatchExecutor batchExecutor, [NotNull] IEntityOptions options, [NotNull] ILoggerFactory loggerFactory, [NotNull] IRelationalValueBufferFactoryFactory valueBufferFactoryFactory) : base( model, entityKeyFactorySource, entityMaterializerSource, clrPropertyGetterSource, connection, batchPreparer, batchExecutor, options, loggerFactory, valueBufferFactoryFactory) { }
public FakeQueryCompilationContext( IModel model, ILogger logger, ILinqOperatorProvider linqOperatorProvider, IResultOperatorHandler resultOperatorHandler, IEntityMaterializerSource entityMaterializerSource, IClrAccessorSource<IClrPropertyGetter> clrPropertyGetterSource, IEntityKeyFactorySource entityKeyFactorySource, IQueryMethodProvider queryMethodProvider, IMethodCallTranslator compositeMethodCallTranslator, IMemberTranslator compositeMemberTranslator, IRelationalValueBufferFactoryFactory valueBufferFactoryFactory, IRelationalTypeMapper typeMapper, IRelationalMetadataExtensionProvider relationalExtensions) : base( model, logger, linqOperatorProvider, resultOperatorHandler, entityMaterializerSource, entityKeyFactorySource, clrPropertyGetterSource, queryMethodProvider, compositeMethodCallTranslator, compositeMemberTranslator, valueBufferFactoryFactory, typeMapper, relationalExtensions) { }
public FakeRelationalDatabase( IModel model, IEntityKeyFactorySource entityKeyFactorySource, IEntityMaterializerSource entityMaterializerSource, IClrAccessorSource<IClrPropertyGetter> clrPropertyGetterSource, IRelationalConnection connection, ICommandBatchPreparer batchPreparer, IBatchExecutor batchExecutor, IDbContextOptions options, ILoggerFactory loggerFactory, IRelationalValueBufferFactoryFactory valueBufferFactoryFactory, IMethodCallTranslator compositeMethodCallTranslator, IMemberTranslator compositeMemberTranslator, IRelationalTypeMapper typeMapper) : base( model, entityKeyFactorySource, entityMaterializerSource, clrPropertyGetterSource, connection, batchPreparer, batchExecutor, options, loggerFactory, valueBufferFactoryFactory, compositeMethodCallTranslator, compositeMemberTranslator, typeMapper) { }