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 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 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) { }
public MyRelationalDatabase(IQueryCompilationContextFactory queryCompilationContextFactory, ICommandBatchPreparer batchPreparer, IBatchExecutor batchExecutor, IRelationalConnection connection) : base(queryCompilationContextFactory, batchPreparer, batchExecutor, connection) { }
/// <summary> /// <para> /// Creates the service dependencies parameter object for a <see cref="RelationalDatabase" />. /// </para> /// <para> /// Do not call this constructor directly from either provider or application code as it may change /// as new dependencies are added. Instead, use this type in your constructor so that an instance /// will be created and injected automatically by the dependency injection container. To create /// an instance with some dependent services replaced, first resolve the object from the dependency /// injection container, then replace selected services using the 'With...' methods. Do not call /// the constructor at any point in this process. /// </para> /// </summary> /// <param name="batchPreparer"> The <see cref="ICommandBatchPreparer" /> to be used. </param> /// <param name="batchExecutor"> The <see cref="IBatchExecutor" /> to be used. </param> /// <param name="connection"> The <see cref="IRelationalConnection" /> to be used. </param> public RelationalDatabaseDependencies( [NotNull] ICommandBatchPreparer batchPreparer, [NotNull] IBatchExecutor batchExecutor, [NotNull] IRelationalConnection connection) { Check.NotNull(batchPreparer, nameof(batchPreparer)); Check.NotNull(batchExecutor, nameof(batchExecutor)); Check.NotNull(connection, nameof(connection)); BatchPreparer = batchPreparer; BatchExecutor = batchExecutor; Connection = connection; }
public RelationalDatabase( [NotNull] IQueryCompilationContextFactory queryCompilationContextFactory, [NotNull] ICommandBatchPreparer batchPreparer, [NotNull] IBatchExecutor batchExecutor, [NotNull] IRelationalConnection connection) : base(queryCompilationContextFactory) { Check.NotNull(batchPreparer, nameof(batchPreparer)); Check.NotNull(batchExecutor, nameof(batchExecutor)); Check.NotNull(connection, nameof(connection)); _batchPreparer = batchPreparer; _batchExecutor = batchExecutor; _connection = connection; }
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; }
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 SqlServerDataStore( [NotNull] IModel model, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IEntityMaterializerSource entityMaterializerSource, [NotNull] IClrAccessorSource <IClrPropertyGetter> clrPropertyGetterSource, [NotNull] ISqlServerConnection 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(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 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) { }
/// <summary> /// Clones this dependency parameter object with one service replaced. /// </summary> /// <param name="batchPreparer"> /// A replacement for the current dependency of this type. /// </param> /// <returns> A new parameter object with the given service replaced. </returns> public RelationalDatabaseDependencies With([NotNull] ICommandBatchPreparer batchPreparer) => new RelationalDatabaseDependencies(batchPreparer, BatchExecutor, Connection);
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) { }