Пример #1
0
 public MySQLModificationCommandBatch(
     [NotNull] IRelationalCommandBuilderFactory commandBuilderFactory,
     [NotNull] ISqlGenerationHelper sqlGenerator,
     [NotNull] MySQLUpdateSqlGenerator updateSqlGenerator,
     [NotNull] IRelationalValueBufferFactoryFactory valueBufferFactoryFactory,
     [CanBeNull] int?maxBatchSize)
     : base(commandBuilderFactory, sqlGenerator, updateSqlGenerator, valueBufferFactoryFactory)
 {
 }
 public MySQLModificationCommandBatch(
     IRelationalCommandBuilderFactory commandBuilderFactory,
     ISqlGenerationHelper sqlGenerator,
     MySQLUpdateSqlGenerator updateSqlGenerator,
     IRelationalValueBufferFactoryFactory valueBufferFactoryFactory,
     int?maxBatchSize)
     : base(commandBuilderFactory, sqlGenerator, updateSqlGenerator, valueBufferFactoryFactory)
 {
 }
Пример #3
0
        public MySQLModificationCommandBatchFactory(
            [NotNull] IRelationalCommandBuilderFactory commandBuilderFactory,
            [NotNull] ISqlGenerationHelper sqlGenerator,
            [NotNull] IUpdateSqlGenerator updateSqlGenerator,
            [NotNull] IRelationalValueBufferFactoryFactory valueBufferFactoryFactory,
            [NotNull] IDbContextOptions options)
        {
            ThrowIf.Argument.IsNull(commandBuilderFactory, "commandBuilderFactory");
            ThrowIf.Argument.IsNull(updateSqlGenerator, "updateSqlGenerator");
            ThrowIf.Argument.IsNull(valueBufferFactoryFactory, "valueBufferFactoryFactory");
            ThrowIf.Argument.IsNull(options, "options");

            _commandBuilderFactory     = commandBuilderFactory;
            _sqlGenerator              = sqlGenerator;
            _updateSqlGenerator        = (MySQLUpdateSqlGenerator)updateSqlGenerator;
            _valueBufferFactoryFactory = valueBufferFactoryFactory;
            _options = options;
        }