Udostępnij za pośrednictwem


IMutableEntityType.AddServiceProperty Metoda

Definicja

Przeciążenia

AddServiceProperty(MemberInfo)

Dodaje właściwość usługi do tego typu jednostki.

AddServiceProperty(MemberInfo, Type)

Dodaje właściwość usługi do tego typu jednostki.

AddServiceProperty(MemberInfo)

Dodaje właściwość usługi do tego typu jednostki.

public Microsoft.EntityFrameworkCore.Metadata.IMutableServiceProperty AddServiceProperty (System.Reflection.MemberInfo memberInfo);
abstract member AddServiceProperty : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableServiceProperty
Public Function AddServiceProperty (memberInfo As MemberInfo) As IMutableServiceProperty

Parametry

memberInfo
MemberInfo

Właściwość PropertyInfo lub FieldInfo do dodania.

Zwraca

Nowo utworzona właściwość usługi.

Dotyczy

AddServiceProperty(MemberInfo, Type)

Dodaje właściwość usługi do tego typu jednostki.

public Microsoft.EntityFrameworkCore.Metadata.IMutableServiceProperty AddServiceProperty (System.Reflection.MemberInfo memberInfo, Type? serviceType = default);
abstract member AddServiceProperty : System.Reflection.MemberInfo * Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableServiceProperty
Public Function AddServiceProperty (memberInfo As MemberInfo, Optional serviceType As Type = Nothing) As IMutableServiceProperty

Parametry

memberInfo
MemberInfo

Właściwość PropertyInfo lub FieldInfo do dodania.

serviceType
Type

Typ usługi lub null typ elementu członkowskiego.

Zwraca

Nowo utworzona właściwość usługi.

Dotyczy