Aracılığıyla paylaş


IConventionTypeBaseBuilder.ComplexIndexerProperty Yöntem

Tanım

Karmaşık dizin oluşturucu özelliğini verilen adla yapılandırmak için kullanılabilecek bir nesne döndürür. Eşleşen özellik yoksa yeni bir özellik eklenir.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexPropertyBuilder? ComplexIndexerProperty (Type propertyType, string propertyName, Type? complexType, bool fromDataAnnotation = false);
abstract member ComplexIndexerProperty : Type * string * Type * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexPropertyBuilder
Public Function ComplexIndexerProperty (propertyType As Type, propertyName As String, complexType As Type, Optional fromDataAnnotation As Boolean = false) As IConventionComplexPropertyBuilder

Parametreler

propertyType
Type

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

propertyName
String

Yapılandırılacak özelliğin adı.

complexType
Type

Hedef karmaşık türü.

fromDataAnnotation
Boolean

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

Döndürülenler

Türünde varsa özelliği yapılandırmak için kullanılabilecek bir nesne, null aksi takdirde.

Şunlara uygulanır