다음을 통해 공유


MutableEntityTypeExtensions.RemoveForeignKey 메서드

정의

이 엔터티 형식에서 외래 키를 제거합니다.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey RemoveForeignKey (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties, Microsoft.EntityFrameworkCore.Metadata.IMutableKey principalKey, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType principalEntityType);
static member RemoveForeignKey : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> * Microsoft.EntityFrameworkCore.Metadata.IMutableKey * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey
<Extension()>
Public Function RemoveForeignKey (entityType As IMutableEntityType, properties As IReadOnlyList(Of IMutableProperty), principalKey As IMutableKey, principalEntityType As IMutableEntityType) As IMutableForeignKey

매개 변수

entityType
IMutableEntityType

엔터티 형식입니다.

properties
IReadOnlyList<IMutableProperty>

외래 키가 정의된 속성입니다.

principalKey
IMutableKey

참조되는 기본 또는 대체 키입니다.

principalEntityType
IMutableEntityType

관계의 대상 엔터티 형식입니다. 이는 관계가 상속 계층 구조에서 파생 형식을 대상으로 하는 principalKey 경우에 정의된 형식과 다를 수 있습니다(키는 계층의 기본 형식에 정의되어 있기 때문에).

반환

제거된 외래 키입니다.

적용 대상