public OracleSequenceValueGeneratorFactory( [NotNull] IRawSqlCommandBuilder rawSqlCommandBuilder, [NotNull] IOracleUpdateSqlGenerator sqlGenerator) { Check.NotNull(rawSqlCommandBuilder, nameof(rawSqlCommandBuilder)); Check.NotNull(sqlGenerator, nameof(sqlGenerator)); _rawSqlCommandBuilder = rawSqlCommandBuilder; _sqlGenerator = sqlGenerator; }
public OracleSequenceHiLoValueGenerator( [NotNull] IRawSqlCommandBuilder rawSqlCommandBuilder, [NotNull] IOracleUpdateSqlGenerator sqlGenerator, [NotNull] OracleSequenceValueGeneratorState generatorState, [NotNull] IOracleConnection connection) : base(generatorState) { Check.NotNull(rawSqlCommandBuilder, nameof(rawSqlCommandBuilder)); Check.NotNull(sqlGenerator, nameof(sqlGenerator)); Check.NotNull(connection, nameof(connection)); _sequence = generatorState.Sequence; _rawSqlCommandBuilder = rawSqlCommandBuilder; _sqlGenerator = sqlGenerator; _connection = connection; }
public OracleModificationCommandBatchFactory( [NotNull] IRelationalCommandBuilderFactory commandBuilderFactory, [NotNull] ISqlGenerationHelper sqlGenerationHelper, [NotNull] IOracleUpdateSqlGenerator updateSqlGenerator, [NotNull] IRelationalValueBufferFactoryFactory valueBufferFactoryFactory, [NotNull] IDbContextOptions options) { Check.NotNull(commandBuilderFactory, nameof(commandBuilderFactory)); Check.NotNull(sqlGenerationHelper, nameof(sqlGenerationHelper)); Check.NotNull(updateSqlGenerator, nameof(updateSqlGenerator)); Check.NotNull(valueBufferFactoryFactory, nameof(valueBufferFactoryFactory)); Check.NotNull(options, nameof(options)); _commandBuilderFactory = commandBuilderFactory; _sqlGenerationHelper = sqlGenerationHelper; _updateSqlGenerator = updateSqlGenerator; _valueBufferFactoryFactory = valueBufferFactoryFactory; _options = options; }
public OracleModificationCommandBatch( [NotNull] IRelationalCommandBuilderFactory commandBuilderFactory, [NotNull] ISqlGenerationHelper sqlGenerationHelper, // ReSharper disable once SuggestBaseTypeForParameter [NotNull] IOracleUpdateSqlGenerator updateSqlGenerator, [NotNull] IRelationalValueBufferFactoryFactory valueBufferFactoryFactory, [CanBeNull] int?maxBatchSize) : base( commandBuilderFactory, sqlGenerationHelper, updateSqlGenerator, valueBufferFactoryFactory) { if (maxBatchSize.HasValue && maxBatchSize.Value <= 0) { throw new ArgumentOutOfRangeException(nameof(maxBatchSize), RelationalStrings.InvalidMaxBatchSize); } _maxBatchSize = Math.Min(maxBatchSize ?? int.MaxValue, MaxRowCount); }