/// <summary> /// This API supports the Entity Framework Core infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </summary> public FirebirdSqlModificationCommandBatch( [NotNull] IRelationalCommandBuilderFactory commandBuilderFactory, [NotNull] ISqlGenerationHelper sqlGenerationHelper, // ReSharper disable once SuggestBaseTypeForParameter [NotNull] IFirebirdSqlUpdateSqlGenerator 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); }
public FirebirdSqlModificationCommandBatchFactory( [NotNull] IRelationalCommandBuilderFactory commandBuilderFactory, [NotNull] ISqlGenerationHelper sqlGenerationHelper, [NotNull] IFirebirdSqlUpdateSqlGenerator 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; }