Partager via


IHistoryRepository.GetAppliedMigrationsAsync(CancellationToken) Méthode

Définition

Interroge la table d’historique pour toutes les migrations qui ont été appliquées.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.HistoryRow>> GetAppliedMigrationsAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAppliedMigrationsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.HistoryRow>>
Public Function GetAppliedMigrationsAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyList(Of HistoryRow))

Paramètres

cancellationToken
CancellationToken

CancellationToken À observer en attendant la fin de la tâche.

Retours

Tâche qui représente l’opération asynchrone. Le résultat de la tâche contient la liste des migrations appliquées, en tant qu’entités HistoryRow .

Exceptions

S’applique à