Exemplo n.º 1
0
 public NpgsqlDatabase(
     [NotNull] DbContext context,
     [NotNull] INpgsqlDataStoreCreator dataStoreCreator,
     [NotNull] INpgsqlEFConnection connection,
     [NotNull] Migrator migrator,
     [NotNull] ILoggerFactory loggerFactory)
     : base(context, dataStoreCreator, connection, migrator, loggerFactory)
 {
 }
Exemplo n.º 2
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;
        }
Exemplo n.º 3
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;
        }
Exemplo n.º 4
0
        public NpgsqlDatabaseFactory(
            [NotNull] DbContext context,
            [NotNull] INpgsqlDataStoreCreator dataStoreCreator,
            [NotNull] INpgsqlEFConnection connection,
            [NotNull] IMigrator migrator,
            [NotNull] ILoggerFactory loggerFactory)
        {
            Check.NotNull(context, nameof(context));
            Check.NotNull(dataStoreCreator, nameof(dataStoreCreator));
            Check.NotNull(connection, nameof(connection));
            Check.NotNull(migrator, nameof(migrator));
            Check.NotNull(loggerFactory, nameof(loggerFactory));

            _context = context;
            _dataStoreCreator = dataStoreCreator;
            _connection = connection;
            _migrator = migrator;
            _loggerFactory = loggerFactory;
        }
Exemplo n.º 5
0
        public NpgsqlDatabaseFactory(
            [NotNull] DbContext context,
            [NotNull] INpgsqlDataStoreCreator dataStoreCreator,
            [NotNull] INpgsqlEFConnection connection,
            [NotNull] Migrator migrator,
            [NotNull] ILoggerFactory loggerFactory)
        {
            Check.NotNull(context, nameof(context));
            Check.NotNull(dataStoreCreator, nameof(dataStoreCreator));
            Check.NotNull(connection, nameof(connection));
            Check.NotNull(migrator, nameof(migrator));
            Check.NotNull(loggerFactory, nameof(loggerFactory));

            _context          = context;
            _dataStoreCreator = dataStoreCreator;
            _connection       = connection;
            _migrator         = migrator;
            _loggerFactory    = loggerFactory;
        }