HistoryRepository.GetAppliedMigrationsAsync(CancellationToken) Method

Definition

Queries the history table for all migrations that have been applied.

C#
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.HistoryRow>> GetAppliedMigrationsAsync (System.Threading.CancellationToken cancellationToken = default);

Parameters

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for the task to complete.

Returns

A task that represents the asynchronous operation. The task result contains the list of applied migrations, as HistoryRow entities.

Implements

Exceptions

Applies to

Product Versions
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0