예제 #1
0
 public RepositoryMigration(Migration migration)
 {
     Migration   = migration;
     StartedOn   = DateTime.UtcNow;
     Version     = migration?.Version ?? MigrationVersion.Default();
     Description = migration?.Description ?? string.Empty;
 }
예제 #2
0
 internal MigrationSession(
     IEnumerable <Migration> migrationsToBeApplied,
     MigrationVersion firstVersion,
     MigrationVersion lastVersion) : this()
 {
     MigrationSessionId    = Guid.NewGuid();
     StartedOn             = DateTime.UtcNow;
     MigrationsToBeApplied = migrationsToBeApplied;
     FirstVersion          = firstVersion;
     LastVersion           = lastVersion;
 }
예제 #3
0
 public MigrationException(
     Exception innerException,
     MigrationVersion versionFailedOn) : base(innerException.Message, innerException)
 {
     VersionFailedOn = versionFailedOn;
 }