IConventionSkipNavigationBuilder.CanSetForeignKey 메서드

정의

지정된 구성 원본에서 이 탐색에 ForeignKey 대해 를 설정할 수 있는지 여부를 나타내는 값을 반환합니다.

public bool CanSetForeignKey (Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey foreignKey, bool fromDataAnnotation = false);
public bool CanSetForeignKey (Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey? foreignKey, bool fromDataAnnotation = false);
abstract member CanSetForeignKey : Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey * bool -> bool
Public Function CanSetForeignKey (foreignKey As IConventionForeignKey, Optional fromDataAnnotation As Boolean = false) As Boolean

매개 변수

foreignKey
IConventionForeignKey

외래 키입니다. 전달 null 하면 외래 키가 연결되지 않습니다.

fromDataAnnotation
Boolean

데이터 주석을 사용하여 구성을 지정했는지 여부를 나타냅니다.

반환

true 이 속성에 대해 를 ForeignKey 설정할 수 있으면 입니다.

적용 대상