PropertyBaseExtensions.GetMemberInfo(IPropertyBase, Boolean, Boolean) Yöntem

Tanım

PropertyInfo FieldInfo Verilen özellik için bir değer almak veya ayarlamak için kullanılması gereken veya değerini alır.

Bu IsShadowProperty(IPropertyBase) tür bir özelliğin ilişkili olmadığından, bir Shadow özelliği () için bu yöntemi çağırma hatası olduğunu unutmayın MemberInfo .

public static System.Reflection.MemberInfo GetMemberInfo (this Microsoft.EntityFrameworkCore.Metadata.IPropertyBase propertyBase, bool forMaterialization, bool forSet);
static member GetMemberInfo : Microsoft.EntityFrameworkCore.Metadata.IPropertyBase * bool * bool -> System.Reflection.MemberInfo
<Extension()>
Public Function GetMemberInfo (propertyBase As IPropertyBase, forMaterialization As Boolean, forSet As Boolean) As MemberInfo

Parametreler

propertyBase
IPropertyBase

Özellik.

forMaterialization
Boolean

True ise, sorgu gerçekleştirmesi için kullanılacak üye döndürülür.

forSet
Boolean

True ise, özellik değerini ayarlamak için kullanılacak üye döndürülür, aksi takdirde özellik değerini almak için kullanılacak üye döndürülür.

Döndürülenler

MemberInfo

MemberInfoKullanım için.

Şunlara uygulanır