PropertyBaseExtensions.GetPropertyAccessMode(IPropertyBase) 方法

定义

PropertyAccessMode获取用于此属性的 。 null 指示正在使用默认属性访问模式。

public static Microsoft.EntityFrameworkCore.Metadata.PropertyAccessMode? GetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IPropertyBase propertyBase);
public static Microsoft.EntityFrameworkCore.PropertyAccessMode? GetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IPropertyBase propertyBase);
public static Microsoft.EntityFrameworkCore.PropertyAccessMode GetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IPropertyBase propertyBase);
static member GetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IPropertyBase -> Nullable<Microsoft.EntityFrameworkCore.Metadata.PropertyAccessMode>
static member GetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IPropertyBase -> Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode>
static member GetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IPropertyBase -> Microsoft.EntityFrameworkCore.PropertyAccessMode
<Extension()>
Public Function GetPropertyAccessMode (propertyBase As IPropertyBase) As Nullable(Of PropertyAccessMode)
<Extension()>
Public Function GetPropertyAccessMode (propertyBase As IPropertyBase) As PropertyAccessMode

参数

propertyBase
IPropertyBase

要获取其访问模式的属性。

返回

正在使用的访问模式,或者 null 是否正在使用默认访问模式。

适用于