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