다음을 통해 공유


IConventionAnnotatable 인터페이스

정의

수정할 수 있는 주석을 노출하는 클래스입니다. 주석을 사용하면 임의의 메타데이터를 개체에 저장할 수 있습니다.

이 인터페이스는 일반적으로 데이터베이스 공급자(및 기타 확장)에서 사용됩니다. 일반적으로 애플리케이션 코드에는 사용되지 않습니다.

public interface IConventionAnnotatable : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable
public interface IConventionAnnotatable : Microsoft.EntityFrameworkCore.Infrastructure.IReadOnlyAnnotatable
type IConventionAnnotatable = interface
    interface IAnnotatable
type IConventionAnnotatable = interface
    interface IReadOnlyAnnotatable
Public Interface IConventionAnnotatable
Implements IAnnotatable
Public Interface IConventionAnnotatable
Implements IReadOnlyAnnotatable
파생
구현

설명

자세한 내용 및 예제는 모델 빌드 규칙을 참조하세요.

속성

Builder

이 개체를 구성하는 데 사용할 수 있는 작성기를 가져옵니다.

IsInModel

이 개체가 모델에 있는지 여부(예: 모델에서 제거되지 않음)를 나타냅니다.

Item[String]

지정된 이름의 주석 값을 가져오고 없는 경우 를 반환합니다 null .

(다음에서 상속됨 IReadOnlyAnnotatable)

메서드

AddAnnotation(String, Object, Boolean)

이 개체에 주석을 추가합니다. 지정된 이름의 주석이 이미 있는 경우 을 throw합니다.

AddAnnotations(IEnumerable<IConventionAnnotation>, Boolean)

개체에 주석을 추가합니다.

AddRuntimeAnnotation(String, Object)

이 개체에 런타임 주석을 추가합니다. 지정된 이름의 주석이 이미 있는 경우 을 throw합니다.

(다음에서 상속됨 IAnnotatable)
AnnotationsToDebugString(Int32)

개체에 선언된 모든 주석에 대한 디버그 문자열을 가져옵니다.

(다음에서 상속됨 IReadOnlyAnnotatable)
FindAnnotation(String)

지정된 이름의 주석을 가져오고 없는 경우 를 반환합니다 null .

FindRuntimeAnnotation(String)

지정된 이름의 런타임 주석을 가져오고 존재하지 않는 경우 를 반환합니다 null .

(다음에서 상속됨 IAnnotatable)
FindRuntimeAnnotationValue(String)

지정된 이름의 런타임 주석 값을 가져오고 존재하지 않는 경우 를 반환합니다 null .

(다음에서 상속됨 IAnnotatable)
GetAnnotation(String)

지정된 이름의 주석을 가져오고, 없는 경우 을 throw합니다.

GetAnnotations()

현재 개체의 모든 주석을 가져옵니다.

GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

지정된 이름의 런타임 주석 값을 가져오고, 이름이 없으면 추가합니다.

(다음에서 상속됨 IAnnotatable)
GetRuntimeAnnotations()

현재 개체의 모든 런타임 주석을 가져옵니다.

(다음에서 상속됨 IAnnotatable)
RemoveAnnotation(String)

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

RemoveRuntimeAnnotation(String)

이 개체에서 지정된 런타임 주석을 제거합니다.

(다음에서 상속됨 IAnnotatable)
SetAnnotation(String, Object, Boolean)

지정된 이름 아래에 저장된 주석을 설정합니다. 지정된 이름의 주석이 이미 있는 경우 기존 주석을 덮어씁니다.

SetOrRemoveAnnotation(String, Object, Boolean)

지정된 이름 아래에 저장된 주석을 설정합니다. 지정된 이름의 주석이 이미 있는 경우 기존 주석을 덮어씁니다. 가 제공된 경우 null 기존 주석을 제거합니다.

SetRuntimeAnnotation(String, Object)

지정된 키 아래에 저장된 런타임 주석을 설정합니다. 지정된 이름의 주석이 이미 있는 경우 기존 주석을 덮어씁니다.

(다음에서 상속됨 IAnnotatable)

확장 메서드

AddAnnotations(IConventionAnnotatable, IEnumerable<IConventionAnnotation>, Boolean)

개체에 주석을 추가합니다.

GetAnnotation(IConventionAnnotatable, String)

지정된 이름의 주석을 가져오고, 없는 경우 을 throw합니다.

SetOrRemoveAnnotation(IConventionAnnotatable, String, Object, Boolean)

지정된 이름 아래에 저장된 주석을 설정합니다. 지정된 이름의 주석이 이미 있는 경우 기존 주석을 덮어씁니다. 가 제공된 경우 null 기존 주석을 제거합니다.

AnnotationsToDebugString(IAnnotatable, Int32)

개체에 선언된 모든 주석에 대한 디버그 문자열을 가져옵니다.

GetAnnotation(IAnnotatable, String)

지정된 이름의 주석을 가져오고, 없는 경우 을 throw합니다.

적용 대상