IConventionEntityType.RemoveForeignKey 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
RemoveForeignKey(IConventionForeignKey) |
이 엔터티 형식에서 외래 키를 제거합니다. |
RemoveForeignKey(IReadOnlyForeignKey) |
이 엔터티 형식에서 외래 키를 제거합니다. |
RemoveForeignKey(IReadOnlyList<IReadOnlyProperty>, IConventionKey, IConventionEntityType) |
이 엔터티 형식에서 외래 키를 제거합니다. |
RemoveForeignKey(IConventionForeignKey)
이 엔터티 형식에서 외래 키를 제거합니다.
public void RemoveForeignKey (Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey foreignKey);
public Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey RemoveForeignKey (Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey foreignKey);
abstract member RemoveForeignKey : Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey -> unit
abstract member RemoveForeignKey : Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey -> Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey
Public Sub RemoveForeignKey (foreignKey As IConventionForeignKey)
Public Function RemoveForeignKey (foreignKey As IConventionForeignKey) As IConventionForeignKey
매개 변수
- foreignKey
- IConventionForeignKey
제거할 외래 키입니다.
반환
제거된 외래 키입니다.
적용 대상
RemoveForeignKey(IReadOnlyForeignKey)
이 엔터티 형식에서 외래 키를 제거합니다.
public Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey? RemoveForeignKey (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey foreignKey);
abstract member RemoveForeignKey : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey -> Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey
Public Function RemoveForeignKey (foreignKey As IReadOnlyForeignKey) As IConventionForeignKey
매개 변수
- foreignKey
- IReadOnlyForeignKey
제거할 외래 키입니다.
반환
제거된 외래 키이거나 null
인덱스가 없는 경우 입니다.
적용 대상
RemoveForeignKey(IReadOnlyList<IReadOnlyProperty>, IConventionKey, IConventionEntityType)
이 엔터티 형식에서 외래 키를 제거합니다.
public Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey? RemoveForeignKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties, Microsoft.EntityFrameworkCore.Metadata.IConventionKey principalKey, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType principalEntityType);
abstract member RemoveForeignKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> * Microsoft.EntityFrameworkCore.Metadata.IConventionKey * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey
Public Function RemoveForeignKey (properties As IReadOnlyList(Of IReadOnlyProperty), principalKey As IConventionKey, principalEntityType As IConventionEntityType) As IConventionForeignKey
매개 변수
- properties
- IReadOnlyList<IReadOnlyProperty>
외래 키가 정의된 속성입니다.
- principalKey
- IConventionKey
참조되는 기본 또는 대체 키입니다.
- principalEntityType
- IConventionEntityType
관계의 대상 엔터티 형식입니다. 이는 관계가 상속 계층 구조에서 파생 형식을 대상으로 하는 principalKey
경우에 정의된 형식과 다를 수 있습니다(키는 계층의 기본 형식에 정의되어 있기 때문에).
반환
제거된 외래 키입니다.
적용 대상
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Entity Framework
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기