共用方式為


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 正在使用預設存取模式,則為 。

適用於