Class MigrationExecutor

Assembly: redb.Core.Pro.dll

Executes data migrations with support for dry-run, logging and history.

public class MigrationExecutor

Inheritance

ObjectMigrationExecutor

Methods

ExecuteAsync<TProps>(IRedbMigration<TProps>, bool, string?)

Execute all migrations from configuration

public Task<List<MigrationResult>> ExecuteAsync<TProps>(IRedbMigration<TProps> migration, bool dryRun = false, string? appliedBy = null) where TProps : class

IsMigrationAppliedAsync(long, string)

Check if migration was already applied.

public Task<bool> IsMigrationAppliedAsync(long schemeId, string migrationId)

IsMigrationChangedAsync(long, string, string)

Check if migration has changed (by Expression hash).

public Task<bool> IsMigrationChangedAsync(long schemeId, string migrationId, string newHash)

Constructors