Aracılığıyla paylaş


RuntimeEntityType.AddServiceProperty Yöntem

Tanım

Aşırı Yüklemeler

AddServiceProperty(String, PropertyInfo, FieldInfo, PropertyAccessMode)

Bu varlık türüne bir hizmet özelliği ekler.

AddServiceProperty(String, PropertyInfo, FieldInfo, Type, PropertyAccessMode)

Bu varlık türüne bir hizmet özelliği ekler.

AddServiceProperty(String, PropertyInfo, FieldInfo, PropertyAccessMode)

Bu varlık türüne bir hizmet özelliği ekler.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeServiceProperty AddServiceProperty (string name, System.Reflection.PropertyInfo? propertyInfo = default, System.Reflection.FieldInfo? fieldInfo = default, Microsoft.EntityFrameworkCore.PropertyAccessMode propertyAccessMode = Microsoft.EntityFrameworkCore.PropertyAccessMode.PreferField);
abstract member AddServiceProperty : string * System.Reflection.PropertyInfo * System.Reflection.FieldInfo * Microsoft.EntityFrameworkCore.PropertyAccessMode -> Microsoft.EntityFrameworkCore.Metadata.RuntimeServiceProperty
override this.AddServiceProperty : string * System.Reflection.PropertyInfo * System.Reflection.FieldInfo * Microsoft.EntityFrameworkCore.PropertyAccessMode -> Microsoft.EntityFrameworkCore.Metadata.RuntimeServiceProperty
Public Overridable Function AddServiceProperty (name As String, Optional propertyInfo As PropertyInfo = Nothing, Optional fieldInfo As FieldInfo = Nothing, Optional propertyAccessMode As PropertyAccessMode = Microsoft.EntityFrameworkCore.PropertyAccessMode.PreferField) As RuntimeServiceProperty

Parametreler

name
String

Eklenecek özelliğin adı.

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.

Döndürülenler

Yeni oluşturulan hizmet özelliği.

Şunlara uygulanır

AddServiceProperty(String, PropertyInfo, FieldInfo, Type, PropertyAccessMode)

Bu varlık türüne bir hizmet özelliği ekler.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeServiceProperty AddServiceProperty (string name, System.Reflection.PropertyInfo? propertyInfo = default, System.Reflection.FieldInfo? fieldInfo = default, Type? serviceType = default, Microsoft.EntityFrameworkCore.PropertyAccessMode propertyAccessMode = Microsoft.EntityFrameworkCore.PropertyAccessMode.PreferField);
abstract member AddServiceProperty : string * System.Reflection.PropertyInfo * System.Reflection.FieldInfo * Type * Microsoft.EntityFrameworkCore.PropertyAccessMode -> Microsoft.EntityFrameworkCore.Metadata.RuntimeServiceProperty
override this.AddServiceProperty : string * System.Reflection.PropertyInfo * System.Reflection.FieldInfo * Type * Microsoft.EntityFrameworkCore.PropertyAccessMode -> Microsoft.EntityFrameworkCore.Metadata.RuntimeServiceProperty
Public Overridable Function AddServiceProperty (name As String, Optional propertyInfo As PropertyInfo = Nothing, Optional fieldInfo As FieldInfo = Nothing, Optional serviceType As Type = Nothing, Optional propertyAccessMode As PropertyAccessMode = Microsoft.EntityFrameworkCore.PropertyAccessMode.PreferField) As RuntimeServiceProperty

Parametreler

name
String

Eklenecek özelliğin adı.

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.

serviceType
Type

Hizmetin türü veya null üyenin türünü kullanmak.

propertyAccessMode
PropertyAccessMode

PropertyAccessMode Bu özellik için kullanılan.

Döndürülenler

Yeni oluşturulan hizmet özelliği.

Şunlara uygulanır