// NB: When adding new options, make sure to update the copy ctor below.

        protected RelationalOptionsExtension([NotNull] RelationalOptionsExtension copyFrom)
        {
            Check.NotNull(copyFrom, nameof(copyFrom));

            _connectionString             = copyFrom._connectionString;
            _connection                   = copyFrom._connection;
            _commandTimeout               = copyFrom._commandTimeout;
            _maxBatchSize                 = copyFrom._maxBatchSize;
            _useRelationalNulls           = copyFrom._useRelationalNulls;
            _migrationsAssembly           = copyFrom._migrationsAssembly;
            _migrationsHistoryTableName   = copyFrom._migrationsHistoryTableName;
            _migrationsHistoryTableSchema = copyFrom._migrationsHistoryTableSchema;
        }
Exemple #2
0
 /// <summary>
 ///     Called by a derived class constructor when implementing the <see cref="Clone" /> method.
 /// </summary>
 /// <param name="copyFrom">The instance that is being cloned.</param>
 protected RelationalOptionsExtension(RelationalOptionsExtension copyFrom)
 {
     _connectionString             = copyFrom._connectionString;
     _connection                   = copyFrom._connection;
     _commandTimeout               = copyFrom._commandTimeout;
     _maxBatchSize                 = copyFrom._maxBatchSize;
     _minBatchSize                 = copyFrom._minBatchSize;
     _useRelationalNulls           = copyFrom._useRelationalNulls;
     _querySplittingBehavior       = copyFrom._querySplittingBehavior;
     _migrationsAssembly           = copyFrom._migrationsAssembly;
     _migrationsHistoryTableName   = copyFrom._migrationsHistoryTableName;
     _migrationsHistoryTableSchema = copyFrom._migrationsHistoryTableSchema;
     _executionStrategyFactory     = copyFrom._executionStrategyFactory;
 }
Exemple #3
0
        // NB: When adding new options, make sure to update the copy ctor below.

        protected RelationalOptionsExtension([NotNull] RelationalOptionsExtension copyFrom)
        {
            Check.NotNull(copyFrom, nameof(copyFrom));

            _connectionString              = copyFrom._connectionString;
            _connection                    = copyFrom._connection;
            _commandTimeout                = copyFrom._commandTimeout;
            _maxBatchSize                  = copyFrom._maxBatchSize;
            _useRelationalNulls            = copyFrom._useRelationalNulls;
            _queryClientEvaluationBehavior = copyFrom._queryClientEvaluationBehavior;
            _throwOnAmbientTransaction     = copyFrom._throwOnAmbientTransaction;
            _migrationsAssembly            = copyFrom._migrationsAssembly;
            _migrationsHistoryTableName    = copyFrom._migrationsHistoryTableName;
            _migrationsHistoryTableSchema  = copyFrom._migrationsHistoryTableSchema;
        }