语言

PropertyBaseExtensions.GetGetter(IPropertyBase) 方法

定义

获取一个 IClrPropertyGetter 用于读取此属性的值。

请注意,对于阴影属性(IsShadowProperty(IPropertyBase))调用此方法是一个错误,因为此类属性没有关联 MemberInfo。

public static Microsoft.EntityFrameworkCore.Metadata.IClrPropertyGetter GetGetter(this Microsoft.EntityFrameworkCore.Metadata.IPropertyBase propertyBase);
static member GetGetter : Microsoft.EntityFrameworkCore.Metadata.IPropertyBase -> Microsoft.EntityFrameworkCore.Metadata.IClrPropertyGetter
<Extension()>
Public Function GetGetter (propertyBase As IPropertyBase) As IClrPropertyGetter

参数

propertyBase
IPropertyBase

属性。

返回

访问器。

适用于