MigrationReport<TKey> class
Namespace: Tenantry.Pro.EfCore.Migrations · Package: Tenantry.Pro.EfCore · API reference
The aggregate outcome of running EF Core migrations across all tenant databases.
public sealed record MigrationReport<TKey> : IEquatable<MigrationReport<TKey>>Type parameters
TKey: The tenant identifier type.
Implements IEquatable<MigrationReport<TKey>>.
Properties
Failed
Number of tenants whose migrations failed.
public int Failed { get; }Value: int
HasFailures
True if at least one tenant migration failed.
public bool HasFailures { get; }Value: bool
Results
Per-tenant migration results, one entry per tenant in the store.
public required IReadOnlyList<MigrationResult<TKey>> Results { get; init; }Value: IReadOnlyList<MigrationResult<TKey>>
Succeeded
Number of tenants whose migrations completed successfully.
public int Succeeded { get; }Value: int
Total
Total number of tenants targeted.
public int Total { get; }Value: int
MigrationOrchestratorService<TKey, TContext> class
Runs pending EF Core migrations across all tenant databases discovered via ITenantStore<TKey>https://tenantry.dev/docs/core/api/tenantry-core-itenantstore.
MigrationResult<TKey> class
The outcome of running EF Core migrations against a single tenant's database.