MigrationReport<TKey> class
Namespace: Tenantry.Pro.EfCore · Package: Tenantry.Pro.EfCore · API reference
The outcome of a migration run: a result for each database or schema it migrated.
public sealed record MigrationReport<TKey> : IEquatable<MigrationReport<TKey>>Type parameters
TKey: The tenant identifier type.
Implements IEquatable<MigrationReport<TKey>>.
Properties
Failed
How many of them failed.
public int Failed { get; }Value: int
HasFailures
Whether any of them failed.
public bool HasFailures { get; }Value: bool
Results
A result for each context and each database or schema it connects to for the tenants, in the order the contexts were added and the tenants are in the store.
public required IReadOnlyList<MigrationResult<TKey>> Results { get; init; }Value: IReadOnlyList<MigrationResult<TKey>>
Succeeded
How many of them were migrated without error.
public int Succeeded { get; }Value: int
Total
How many databases or schemas the run migrated, counting each context separately.
public int Total { get; }Value: int
ITenantMigrationRunner<TKey> interface
Applies the migrations of every context added with pro.AddMigrations<TContext>, for every tenant, and reads which are applied.
MigrationResult<TKey> class
The outcome of applying a context's migrations to one database or schema: the one the context connects to for the tenants in MigrationResult<TKey>.TenantIdstenantry-pro-efcore-migrationresult.md.