Compartir a través de


RelationalDatabaseFacadeExtensions.GetPendingMigrations Método

Definición

Obtiene todas las migraciones definidas en el ensamblado, pero que no se han aplicado a la base de datos de destino.

public static System.Collections.Generic.IEnumerable<string> GetPendingMigrations (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> GetPendingMigrations (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade);
static member GetPendingMigrations : 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 GetPendingMigrations : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade -> seq<string>
<Extension()>
Public Function GetPendingMigrations (databaseFacade As DatabaseFacade) As IEnumerable(Of String)

Parámetros

databaseFacade
DatabaseFacade

para DatabaseFacade el contexto.

Devoluciones

Lista de migraciones.

Atributos

Comentarios

Consulte Migraciones de bases de datos para obtener más información y ejemplos.

Se aplica a