TypeBaseExtensions.GetPropertyAccessMode(ITypeBase) 方法

定义

PropertyAccessMode获取用于此类型的属性和导航的 。

请注意,单个属性和导航可以替代此访问模式。 此处返回的值将用于未指定替代的任何属性或导航。

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

参数

typeBase
ITypeBase

要获取其访问模式的类型。

返回

正在使用的访问模式;如果使用默认访问模式,则为 null。

适用于