Aracılığıyla paylaş


IConventionTypeBase.AddComplexIndexerProperty Yöntem

Tanım

Bu türe ve dizin oluşturucu tarafından yedeklenen bir özellik ekler.

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

Parametreler

name
String

Eklenecek özelliğin adı.

propertyType
Type

Özellik türü.

complexType
Type

Özelliğin barındıracağı değerin türü.

complexTypeName
String

Karmaşık türün adı.

collection
Boolean

özelliğinin bir koleksiyonu temsil edip etmediğini gösterir.

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak belirtilip belirtilmediğinden emin olun.

Döndürülenler

Yeni oluşturulan özellik.

Şunlara uygulanır