Freigeben über


RelationalDatabaseFacadeExtensions.GetAppliedMigrations Methode

Definition

Ruft alle Migrationen ab, die auf die Zieldatenbank angewendet wurden.

public static System.Collections.Generic.IEnumerable<string> GetAppliedMigrations (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Migrations operations are not supported with NativeAOT Use a migration bundle or an alternate way of executing migration operations.")]
public static System.Collections.Generic.IEnumerable<string> GetAppliedMigrations (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade);
static member GetAppliedMigrations : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade -> seq<string>
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Migrations operations are not supported with NativeAOT Use a migration bundle or an alternate way of executing migration operations.")>]
static member GetAppliedMigrations : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade -> seq<string>
<Extension()>
Public Function GetAppliedMigrations (databaseFacade As DatabaseFacade) As IEnumerable(Of String)

Parameter

databaseFacade
DatabaseFacade

Die DatabaseFacade für den Kontext.

Gibt zurück

Die Liste der Migrationen.

Attribute

Hinweise

Weitere Informationen und Beispiele finden Sie unter Datenbankmigrationen .

Gilt für: