RelationalDatabaseFacadeExtensions.GetMigrations(DatabaseFacade) 方法

定义

获取在配置的迁移程序集中定义的所有迁移。

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

参数

databaseFacade
DatabaseFacade

DatabaseFacade上下文的 。

返回

迁移列表。

属性

注解

有关详细信息和示例 ,请参阅数据库迁移

适用于