언어

ReferenceCollectionBuilder<TPrincipalEntity,TDependentEntity>.IsConstrained 메서드

정의

관계가 제한되는지 여부를 구성합니다. false데이터베이스 외래 키 제약 조건이 만들어지지 않고 쿼리에서 외래 키 속성이 null을 허용하지 않는 경우에도 관계를 선택 사항으로 처리합니다(보안 주체는 존재하지 않는 것으로 가정됨). 변경 내용 추적에는 영향을 주지 않습니다. IsConstrained을(를) 참조하세요.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<TPrincipalEntity,TDependentEntity> IsConstrained(bool constrained = true);
override this.IsConstrained : bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<'PrincipalEntity, 'DependentEntity (requires 'PrincipalEntity : null and 'DependentEntity : null)>
Public Overridable Function IsConstrained (Optional constrained As Boolean = true) As ReferenceCollectionBuilder(Of TPrincipalEntity, TDependentEntity)

매개 변수

constrained
Boolean

관계가 제한되는지 여부를 나타내는 값입니다.

반품

여러 구성 호출을 연결할 수 있도록 동일한 작성기 인스턴스입니다.

적용 대상