IMigrationsModelDiffer.GetDifferences 메서드

정의

오버로드

GetDifferences(IModel, IModel)

두 모델 간의 차이점을 찾습니다.

GetDifferences(IRelationalModel, IRelationalModel)

두 모델 간의 차이점을 찾습니다.

GetDifferences(IModel, IModel)

두 모델 간의 차이점을 찾습니다.

public System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> GetDifferences (Microsoft.EntityFrameworkCore.Metadata.IModel source, Microsoft.EntityFrameworkCore.Metadata.IModel target);
abstract member GetDifferences : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Metadata.IModel -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation>
Public Function GetDifferences (source As IModel, target As IModel) As IReadOnlyList(Of MigrationOperation)

매개 변수

source
IModel

모델이 수정되기 전과 같습니다.

target
IModel

현재 모델입니다.

반환

이제 대상 모델에 매핑되도록 데이터베이스를 매핑에서 원본 모델로 마이그레이션하기 위해 데이터베이스에 적용해야 하는 작업 목록입니다.

적용 대상

GetDifferences(IRelationalModel, IRelationalModel)

두 모델 간의 차이점을 찾습니다.

public System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> GetDifferences (Microsoft.EntityFrameworkCore.Metadata.IRelationalModel source, Microsoft.EntityFrameworkCore.Metadata.IRelationalModel target);
public System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> GetDifferences (Microsoft.EntityFrameworkCore.Metadata.IRelationalModel? source, Microsoft.EntityFrameworkCore.Metadata.IRelationalModel? target);
abstract member GetDifferences : Microsoft.EntityFrameworkCore.Metadata.IRelationalModel * Microsoft.EntityFrameworkCore.Metadata.IRelationalModel -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation>
Public Function GetDifferences (source As IRelationalModel, target As IRelationalModel) As IReadOnlyList(Of MigrationOperation)

매개 변수

source
IRelationalModel

모델이 수정되기 전과 같습니다.

target
IRelationalModel

현재 모델입니다.

반환

이제 대상 모델에 매핑되도록 데이터베이스를 매핑에서 원본 모델로 마이그레이션하기 위해 데이터베이스에 적용해야 하는 작업 목록입니다.

적용 대상