public NpgsqlSequenceValueGeneratorFactory(
            [NotNull] ISqlStatementExecutor executor,
            [NotNull] INpgsqlSqlGenerator sqlGenerator)
        {
            Check.NotNull(executor, nameof(executor));
            Check.NotNull(sqlGenerator, nameof(sqlGenerator));

            _executor = executor;
            _sqlGenerator = sqlGenerator;
        }
        public NpgsqlSequenceValueGeneratorFactory(
            [NotNull] ISqlStatementExecutor executor,
            [NotNull] INpgsqlSqlGenerator sqlGenerator)
        {
            Check.NotNull(executor, nameof(executor));
            Check.NotNull(sqlGenerator, nameof(sqlGenerator));

            _executor     = executor;
            _sqlGenerator = sqlGenerator;
        }
        public NpgsqlHistoryRepository(
            [NotNull] INpgsqlEFConnection connection,
            [NotNull] INpgsqlDataStoreCreator creator,
            [NotNull] DbContext context,
            [NotNull] INpgsqlSqlGenerator sqlGenerator)
        {
            Check.NotNull(connection, nameof(connection));
            Check.NotNull(creator, nameof(creator));
            Check.NotNull(context, nameof(context));
            Check.NotNull(sqlGenerator, nameof(sqlGenerator));

            _connection  = connection;
            _creator     = creator;
            _contextType = context.GetType();
            _sql         = sqlGenerator;
        }
Example #4
0
        public NpgsqlHistoryRepository(
            [NotNull] INpgsqlEFConnection connection,
            [NotNull] INpgsqlDataStoreCreator creator,
            [NotNull] DbContext context,
            [NotNull] INpgsqlSqlGenerator sqlGenerator)
        {
            Check.NotNull(connection, nameof(connection));
            Check.NotNull(creator, nameof(creator));
            Check.NotNull(context, nameof(context));
            Check.NotNull(sqlGenerator, nameof(sqlGenerator));

            _connection = connection;
            _creator = creator;
            _contextType = context.GetType();
            _sql = sqlGenerator;
        }
Example #5
0
        public NpgsqlSequenceValueGenerator(
            [NotNull] ISqlStatementExecutor executor,
            [NotNull] INpgsqlSqlGenerator sqlGenerator,
            [NotNull] NpgsqlSequenceValueGeneratorState generatorState,
            [NotNull] INpgsqlEFConnection connection)
            : base(Check.NotNull(generatorState, nameof(generatorState)))
        {
            Check.NotNull(executor, nameof(executor));
            Check.NotNull(sqlGenerator, nameof(sqlGenerator));
            Check.NotNull(connection, nameof(connection));

            _sequenceName = generatorState.SequenceName;
            _executor     = executor;
            _sqlGenerator = sqlGenerator;
            _connection   = connection;
        }
Example #6
0
 public NpgsqlMigrationSqlGenerator([NotNull] INpgsqlSqlGenerator sqlGenerator)
     : base(Check.NotNull(sqlGenerator, nameof(sqlGenerator)))
 {
     _sql = sqlGenerator;
 }
Example #7
0
 public NpgsqlModificationCommandBatch([NotNull] INpgsqlSqlGenerator sqlGenerator) : base(sqlGenerator)
 {
 }
 public NpgsqlMigrationSqlGenerator([NotNull] INpgsqlSqlGenerator sqlGenerator)
     : base(Check.NotNull(sqlGenerator, nameof(sqlGenerator)))
 {
     _sql = sqlGenerator;
 }