Share via


RelationalDatabaseFacadeExtensions.GetPendingMigrations Method

Definition

Gets all migrations that are defined in the assembly but haven't been applied to the target database.

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)

Parameters

databaseFacade
DatabaseFacade

The DatabaseFacade for the context.

Returns

The list of migrations.

Attributes

Remarks

See Database migrations for more information and examples.

Applies to