다음을 통해 공유


IConventionTypeBase.AddComplexIndexerProperty 메서드

정의

및 인덱서에서 백업하는 속성을 이 형식에 추가합니다.

public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty? AddComplexIndexerProperty (string name, Type propertyType, Type complexType, string? complexTypeName = default, bool collection = false, bool fromDataAnnotation = false);
abstract member AddComplexIndexerProperty : string * Type * Type * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
override this.AddComplexIndexerProperty : string * Type * Type * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
Public Overridable Function AddComplexIndexerProperty (name As String, propertyType As Type, complexType As Type, Optional complexTypeName As String = Nothing, Optional collection As Boolean = false, Optional fromDataAnnotation As Boolean = false) As IConventionComplexProperty

매개 변수

name
String

추가할 속성의 이름입니다.

propertyType
Type

속성 형식입니다.

complexType
Type

속성이 보유할 값의 형식입니다.

complexTypeName
String

복합 형식의 이름입니다.

collection
Boolean

속성이 컬렉션을 나타내는지 여부를 나타냅니다.

fromDataAnnotation
Boolean

데이터 주석을 사용하여 구성을 지정했는지 여부를 나타냅니다.

반환

새로 만든 속성입니다.

적용 대상