共用方式為


RelationalDatabaseFacadeExtensions.GetPendingMigrations 方法

定義

取得元件中定義但尚未套用至目標資料庫的所有移轉。

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)

參數

databaseFacade
DatabaseFacade

DatabaseFacade內容的 。

傳回

移轉清單。

屬性

備註

如需詳細資訊和範例 ,請參閱資料庫移 轉。

適用於