共用方式為


ModelExtensions.GetPropertyAccessMode(IModel) 方法

定義

PropertyAccessMode取得用於這個模型中實體類型屬性的 。

請注意,個別實體類型可以覆寫此存取模式,而實體類型的個別屬性可以覆寫實體類型上設定的存取模式。 此處傳回的值將用於未指定覆寫的任何屬性。

public static Microsoft.EntityFrameworkCore.Metadata.PropertyAccessMode? GetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IModel model);
public static Microsoft.EntityFrameworkCore.PropertyAccessMode? GetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IModel model);
[System.Diagnostics.DebuggerStepThrough]
public static Microsoft.EntityFrameworkCore.PropertyAccessMode? GetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IModel model);
[System.Diagnostics.DebuggerStepThrough]
public static Microsoft.EntityFrameworkCore.PropertyAccessMode GetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IModel model);
static member GetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IModel -> Nullable<Microsoft.EntityFrameworkCore.Metadata.PropertyAccessMode>
static member GetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IModel -> Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode>
[<System.Diagnostics.DebuggerStepThrough>]
static member GetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IModel -> Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode>
[<System.Diagnostics.DebuggerStepThrough>]
static member GetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.PropertyAccessMode
<Extension()>
Public Function GetPropertyAccessMode (model As IModel) As Nullable(Of PropertyAccessMode)
<Extension()>
Public Function GetPropertyAccessMode (model As IModel) As PropertyAccessMode

參數

model
IModel

要為其取得存取模式的模型。

傳回

正在使用的存取模式,如果使用預設存取模式,則為 null。

屬性

適用於