Langue

HistoryRepository.GetAppliedMigrationsAsync(CancellationToken) Méthode

Définition

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

public virtual 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>>
override this.GetAppliedMigrationsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.HistoryRow>>
Public Overridable Function GetAppliedMigrationsAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyList(Of HistoryRow))

Paramètres

cancellationToken
CancellationToken

À CancellationToken observer lors de l’attente de 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 .

Implémente

Exceptions

Si la CancellationToken valeur est annulée.

S’applique à