Ejemplo n.º 1
0
 /// <summary>
 /// Ctor.
 /// </summary>
 /// <param name="database">Database connection.</param>
 /// <param name="migrationOptions">Migration options</param>
 public MigrationsRunner(
     IDatabase database,
     MigrationOptions migrationOptions)
 {
     _database         = Check.NotNull(database, nameof(database));
     _migrationOptions = Check.NotNull(migrationOptions, nameof(migrationOptions));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes new instance of <see cref="MigrationsRunner"/> with specified settings.
 /// </summary>
 /// <param name="connectionString">Database connection string.</param>
 /// <param name="migrationOptions">Migration options.</param>
 public MigrationsRunner(string connectionString, MigrationOptions migrationOptions)
 {
     _connectionString = Check.NotNullOrWhiteSpace(connectionString, nameof(connectionString));
     _migrationOptions = Check.NotNull(migrationOptions, nameof(migrationOptions));
 }