언어

ReferenceReferenceBuilder<TEntity,TRelatedEntity>.IsConstrained 메서드

정의

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<TEntity,TRelatedEntity> IsConstrained(bool constrained = true);
override this.IsConstrained : bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)>
Public Overridable Function IsConstrained (Optional constrained As Boolean = true) As ReferenceReferenceBuilder(Of TEntity, TRelatedEntity)

매개 변수

constrained
Boolean

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

반품

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

적용 대상