다음을 통해 공유


IConventionCheckConstraintBuilder 인터페이스

정의

검사 제약 조건을 구성하기 위한 간단한 API를 제공합니다.

public interface IConventionCheckConstraintBuilder : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder
type IConventionCheckConstraintBuilder = interface
    interface IConventionAnnotatableBuilder
Public Interface IConventionCheckConstraintBuilder
Implements IConventionAnnotatableBuilder
구현

설명

자세한 내용과 예제는 모델 빌드 규칙데이터베이스 검사 제약 조건을 참조하세요.

속성

Metadata

구성 중인 검사 제약 조건입니다.

ModelBuilder

모델 작성기를 가져옵니다.

(다음에서 상속됨 IConventionAnnotatableBuilder)

메서드

CanRemoveAnnotation(String, Boolean)

이 구성 원본을 사용하여 지정된 이름의 주석을 제거할 수 있는지 여부를 나타내는 값을 반환합니다.

(다음에서 상속됨 IConventionAnnotatableBuilder)
CanSetAnnotation(String, Object, Boolean)

지정된 이름과 값을 가진 주석을 이 구성 원본에서 설정할 수 있는지 여부를 나타내는 값을 반환합니다.

(다음에서 상속됨 IConventionAnnotatableBuilder)
CanSetName(String, Boolean)

지정된 이름을 검사 제약 조건에 설정할 수 있는지 여부를 나타내는 값을 반환합니다.

HasAnnotation(String, Object, Boolean)

지정된 이름 아래에 저장된 주석을 설정합니다. 지정된 이름의 주석이 이미 동일하거나 낮은 ConfigurationSource에 있는 경우 기존 주석을 덮어씁니다.

HasName(String, Boolean)

검사 제약 조건의 데이터베이스 이름을 설정합니다.

HasNoAnnotation(String, Boolean)

이 개체에서 지정된 이름의 주석을 제거합니다.

HasNonNullAnnotation(String, Object, Boolean)

지정된 이름 아래에 저장된 주석을 설정합니다. 지정된 이름의 주석이 이미 동일하거나 낮은 ConfigurationSource에 있는 경우 기존 주석을 덮어씁니다. 값이 지정된 경우 null 주석을 제거합니다.

RemoveAnnotation(String, Boolean)
사용되지 않습니다.

이 개체에서 지정된 이름의 주석을 제거합니다.

(다음에서 상속됨 IConventionAnnotatableBuilder)
SetOrRemoveAnnotation(String, Object, Boolean)
사용되지 않습니다.

지정된 이름 아래에 저장된 주석을 설정하거나 제거합니다.

(다음에서 상속됨 IConventionAnnotatableBuilder)

적용 대상