다음을 통해 공유


RelationalDatabaseFacadeExtensions.GetAppliedMigrations 메서드

정의

대상 데이터베이스에 적용된 모든 마이그레이션을 가져옵니다.

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)

매개 변수

databaseFacade
DatabaseFacade

DatabaseFacade 컨텍스트에 대한 입니다.

반환

마이그레이션 목록입니다.

특성

설명

자세한 내용 및 예제는 데이터베이스 마이그레이션 을 참조하세요.

적용 대상