public NpgsqlDataStoreServices( [NotNull] NpgsqlDataStore store, [NotNull] NpgsqlDataStoreCreator creator, [NotNull] NpgsqlEntityFrameworkConnection connection, [NotNull] NpgsqlValueGeneratorSelector valueGeneratorSelector, [NotNull] NpgsqlDatabase database, [NotNull] NpgsqlModelBuilderFactory modelBuilderFactory, [NotNull] NpgsqlModelDiffer modelDiffer, [NotNull] NpgsqlHistoryRepository historyRepository, [NotNull] NpgsqlMigrationSqlGenerator migrationSqlGenerator, [NotNull] NpgsqlModelSource modelSource) { Check.NotNull(store, "store"); Check.NotNull(creator, "creator"); Check.NotNull(connection, "connection"); Check.NotNull(valueGeneratorSelector, "valueGeneratorSelector"); Check.NotNull(database, "database"); Check.NotNull(modelBuilderFactory, "modelBuilderFactory"); Check.NotNull(modelDiffer, nameof(modelDiffer)); Check.NotNull(historyRepository, nameof(historyRepository)); Check.NotNull(migrationSqlGenerator, nameof(migrationSqlGenerator)); Check.NotNull(modelSource, "migrator"); _store = store; _creator = creator; _connection = connection; _valueGeneratorSelector = valueGeneratorSelector; _database = database; _modelBuilderFactory = modelBuilderFactory; ModelDiffer = modelDiffer; HistoryRepository = historyRepository; MigrationSqlGenerator = migrationSqlGenerator; _modelSource = modelSource; }
public NpgsqlDataStoreCreator( [NotNull] NpgsqlEntityFrameworkConnection connection, [NotNull] NpgsqlModelDiffer modelDiffer, [NotNull] NpgsqlMigrationSqlGenerator sqlGenerator, [NotNull] SqlStatementExecutor statementExecutor) { Check.NotNull(connection, "connection"); Check.NotNull(modelDiffer, "modelDiffer"); Check.NotNull(sqlGenerator, nameof(sqlGenerator)); Check.NotNull(statementExecutor, "statementExecutor"); _connection = connection; _modelDiffer = modelDiffer; _sqlGenerator = sqlGenerator; _statementExecutor = statementExecutor; }