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。

属性

适用于