언어

IConventionComplexProperty 인터페이스

정의

구조적 형식의 복합 속성을 나타냅니다.

public interface IConventionComplexProperty : Microsoft.EntityFrameworkCore.Metadata.IConventionPropertyBase, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyComplexProperty
type IConventionComplexProperty = interface
    interface IReadOnlyComplexProperty
    interface IReadOnlyPropertyBase
    interface IReadOnlyAnnotatable
    interface IConventionPropertyBase
    interface IConventionAnnotatable
Public Interface IConventionComplexProperty
Implements IConventionPropertyBase, IReadOnlyComplexProperty
구현

설명

이 인터페이스는 모델을 만드는 동안 사용되며 메타데이터를 수정할 수 있습니다. 모델이 빌드 IComplexProperty 되면 동일한 메타데이터의 읽기 전용 보기를 나타냅니다.

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

속성

속성 Description
Builder

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

ClrType

이 속성과 유사한 개체가 보유하는 값의 형식을 가져옵니다.

(다음에서 상속됨 IReadOnlyPropertyBase)
ComplexType

연결된 복합 형식을 가져옵니다.

DeclaringType

이 속성과 유사한 개체가 속한 형식을 가져옵니다.

(다음에서 상속됨 IReadOnlyPropertyBase)
FieldInfo

FieldInfo 이 속성과 유사한 개체에 대한 기본 CLR 필드의 값을 가져옵니다. 이는 섀도 속성 또는 지원 필드를 알 수 없는 경우일 수 null 있습니다.

(다음에서 상속됨 IReadOnlyPropertyBase)
IsCollection

속성이 컬렉션인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 IReadOnlyPropertyBase)
IsInModel

이 개체가 모델에 있는지 여부를 나타냅니다. 즉, 모델에서 제거되지 않았습니다.

(다음에서 상속됨 IConventionAnnotatable)
IsNullable

이 속성에 포함 null할 수 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 IReadOnlyComplexProperty)
Item[String]

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

(다음에서 상속됨 IReadOnlyAnnotatable)
Name

이 속성과 유사한 개체의 이름을 가져옵니다.

(다음에서 상속됨 IReadOnlyPropertyBase)
PropertyInfo

PropertyInfo 이 속성과 유사한 개체의 기본 CLR 속성에 대한 값을 가져옵니다. 이는 섀도 속성 또는 필드에 직접 매핑되는 경우일 수 있습니다 null .

(다음에서 상속됨 IReadOnlyPropertyBase)
Sentinel

이 속성이 설정되지 않았다는 것을 나타내는 sentinel 값을 가져옵니다.

(다음에서 상속됨 IReadOnlyPropertyBase)

메서드

속성 Description
AddAnnotation(String, Object, Boolean)

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

(다음에서 상속됨 IConventionAnnotatable)
AddAnnotations(IEnumerable<IConventionAnnotation>, Boolean)

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

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

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

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

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

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

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

(다음에서 상속됨 IConventionAnnotatable)
GetAnnotations()

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

(다음에서 상속됨 IConventionAnnotatable)
GetConfigurationSource()

이 속성의 구성 원본을 반환합니다.

(다음에서 상속됨 IConventionPropertyBase)
GetFieldInfoConfigurationSource()

에 대한 구성 원본을 반환합니다 FieldInfo.

(다음에서 상속됨 IConventionPropertyBase)
GetFieldName()

이 속성의 지원 필드 이름을 가져오거나 null 지원 필드를 알 수 없는 경우

(다음에서 상속됨 IReadOnlyPropertyBase)
GetIsNullableConfigurationSource()

에 대한 구성 원본을 반환합니다 IsNullable.

GetPropertyAccessMode()

PropertyAccessMode 이 속성과 유사한 개체에 사용되는 개체를 가져옵니다.

(다음에서 상속됨 IReadOnlyPropertyBase)
GetPropertyAccessModeConfigurationSource()

에 대한 구성 원본을 반환합니다 GetPropertyAccessMode().

(다음에서 상속됨 IConventionPropertyBase)
IsIndexerProperty()

인덱서 속성인지 여부를 나타내는 값을 가져옵니다. 인덱서 속성은 엔터티 클래스의 인덱서를 통해 액세스되는 속성입니다.

(다음에서 상속됨 IReadOnlyPropertyBase)
IsShadowProperty()

섀도 속성인지 여부를 나타내는 값을 가져옵니다. 섀도 속성은 엔터티 클래스에 해당 속성이 없는 속성입니다. 속성의 현재 값은 엔터티 클래스의 ChangeTracker 인스턴스에 저장되지 않고 저장됩니다.

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

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

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

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

(다음에서 상속됨 IConventionAnnotatable)
SetField(FieldInfo, Boolean)
사용되지 않음.

이 속성에서 FieldInfo 사용해야 하는 기본 CLR 필드의 값을 설정합니다.

기본적으로 백업 필드가 발견되었거나 지정된 경우 일반적으로 데이터베이스에서 엔터티를 쿼리할 때 새 개체가 생성될 때 사용됩니다. 속성은 다른 모든 액세스에 사용됩니다. 호출하여 SetPropertyAccessMode(Nullable<PropertyAccessMode>, Boolean)변경할 수 있습니다.

(다음에서 상속됨 IConventionPropertyBase)
SetField(String, Boolean)

이 속성에서 사용해야 하는 기본 CLR 필드를 설정합니다. 이는 섀도 속성 또는 속성의 지원 필드를 알 수 없는 경우일 수 null 있습니다.

(다음에서 상속됨 IConventionPropertyBase)
SetFieldInfo(FieldInfo, Boolean)

이 속성에서 FieldInfo 사용해야 하는 기본 CLR 필드의 값을 설정합니다.

(다음에서 상속됨 IConventionPropertyBase)
SetIsNullable(Nullable<Boolean>, Boolean)

이 속성에 포함 null할 수 있는지 여부를 나타내는 값을 설정합니다.

SetOrRemoveAnnotation(String, Object, Boolean)

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

(다음에서 상속됨 IConventionAnnotatable)
SetPropertyAccessMode(Nullable<PropertyAccessMode>, Boolean)

이 속성에 PropertyAccessMode 사용할 값을 설정합니다.

(다음에서 상속됨 IConventionPropertyBase)
ToDebugString(MetadataDebugStringOptions, Int32)

지정된 메타데이터의 사람이 읽을 수 있는 표현을 만듭니다.

경고: 반환된 문자열의 형식을 사용하지 마세요. 디버깅 전용으로 설계되었으며 릴리스 간에 임의로 변경될 수 있습니다.

(다음에서 상속됨 IReadOnlyComplexProperty)

확장명 메서드

속성 Description
GetJsonPropertyName(IReadOnlyComplexProperty)

Cosmos를 대상으로 할 때 속성이 매핑되는 속성 이름을 반환합니다.

GetJsonPropertyName(IReadOnlyComplexProperty)

JSON 열에 매핑된 엔터티의 지정된 복합 속성에 사용되는 JSON 속성 이름의 값을 가져옵니다.

GetJsonPropertyNameConfigurationSource(IConventionComplexProperty)

ConfigurationSource 지정된 복합 속성의 JSON 속성 이름을 가져옵니다.

GetMappedStoreObjects(IReadOnlyComplexProperty, StoreObjectType)

JSON 열에 매핑된 경우 이 복합 속성이 매핑되는 테이블과 유사한 저장소 개체를 반환합니다.

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

SetJsonPropertyName(IConventionComplexProperty, String, Boolean)

JSON 열에 매핑된 엔터티의 지정된 복합 속성에 사용되는 JSON 속성 이름의 값을 설정합니다.

적용 대상