PropertyBaseExtensions.GetGetter(IPropertyBase) Method

Definition

Gets a IClrPropertyGetter for reading the value of this property.

Note that it is an error to call this method for a shadow property (IsShadowProperty(IPropertyBase)) since such a property has no associated MemberInfo.

C#
public static Microsoft.EntityFrameworkCore.Metadata.IClrPropertyGetter GetGetter (this Microsoft.EntityFrameworkCore.Metadata.IPropertyBase propertyBase);

Parameters

propertyBase
IPropertyBase

The property.

Returns

The accessor.

Applies to

Product Versions
Entity Framework Core 3.0, 3.1, 5.0