Aracılığıyla paylaş


RuntimeTypeBase.AddComplexProperty Yöntem

Tanım

Bu varlık türüne karmaşık bir özellik ekler.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeComplexProperty AddComplexProperty (string name, Type clrType, string targetTypeName, Type targetType, System.Reflection.PropertyInfo? propertyInfo = default, System.Reflection.FieldInfo? fieldInfo = default, Microsoft.EntityFrameworkCore.PropertyAccessMode propertyAccessMode = Microsoft.EntityFrameworkCore.PropertyAccessMode.PreferField, bool nullable = false, bool collection = false, Microsoft.EntityFrameworkCore.ChangeTrackingStrategy changeTrackingStrategy = Microsoft.EntityFrameworkCore.ChangeTrackingStrategy.Snapshot, System.Reflection.PropertyInfo? indexerPropertyInfo = default, bool propertyBag = false);
abstract member AddComplexProperty : string * Type * string * Type * System.Reflection.PropertyInfo * System.Reflection.FieldInfo * Microsoft.EntityFrameworkCore.PropertyAccessMode * bool * bool * Microsoft.EntityFrameworkCore.ChangeTrackingStrategy * System.Reflection.PropertyInfo * bool -> Microsoft.EntityFrameworkCore.Metadata.RuntimeComplexProperty
override this.AddComplexProperty : string * Type * string * Type * System.Reflection.PropertyInfo * System.Reflection.FieldInfo * Microsoft.EntityFrameworkCore.PropertyAccessMode * bool * bool * Microsoft.EntityFrameworkCore.ChangeTrackingStrategy * System.Reflection.PropertyInfo * bool -> Microsoft.EntityFrameworkCore.Metadata.RuntimeComplexProperty
Public Overridable Function AddComplexProperty (name As String, clrType As Type, targetTypeName As String, targetType As Type, Optional propertyInfo As PropertyInfo = Nothing, Optional fieldInfo As FieldInfo = Nothing, Optional propertyAccessMode As PropertyAccessMode = Microsoft.EntityFrameworkCore.PropertyAccessMode.PreferField, Optional nullable As Boolean = false, Optional collection As Boolean = false, Optional changeTrackingStrategy As ChangeTrackingStrategy = Microsoft.EntityFrameworkCore.ChangeTrackingStrategy.Snapshot, Optional indexerPropertyInfo As PropertyInfo = Nothing, Optional propertyBag As Boolean = false) As RuntimeComplexProperty

Parametreler

name
String

Eklenecek özelliğin adı.

clrType
Type

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

targetTypeName
String

Eklenecek karmaşık türün adı.

targetType
Type

Bu karmaşık türün örneklerini temsil etmek için kullanılan CLR türü.

propertyInfo
PropertyInfo

Karşılık gelen CLR özelliği veya null bir gölge özellik için.

fieldInfo
FieldInfo

Karşılık gelen CLR alanı veya null bir gölge özelliği için.

propertyAccessMode
PropertyAccessMode

PropertyAccessMode Bu özellik için kullanılan.

nullable
Boolean

Bu özelliğin öğesini içerip içeremeyeceğini nullbelirten bir değer.

collection
Boolean

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

changeTrackingStrategy
ChangeTrackingStrategy

Bu karmaşık tür için değişiklik izleme stratejisi.

indexerPropertyInfo
PropertyInfo

PropertyInfo Varsa ilişkili CLR türündeki dizin oluşturucu için değeri.

propertyBag
Boolean

Bu varlık türünün rastgele özellikler içerebilen bir dizin oluşturucuya ve belirli bir dizin oluşturucu özelliğinin değer içerip içermediğini belirlemek için kullanılabilecek bir yönteme sahip olup olmadığını gösteren değer.

Döndürülenler

Yeni oluşturulan özellik.

Şunlara uygulanır