共用方式為


MutablePropertyBaseExtensions.SetPropertyAccessMode 方法

定義

多載

SetPropertyAccessMode(IMutablePropertyBase, Nullable<PropertyAccessMode>)

PropertyAccessMode設定要用於這個屬性的 。

SetPropertyAccessMode(IMutablePropertyBase, Nullable<PropertyAccessMode>)

PropertyAccessMode設定要用於這個屬性的 。

SetPropertyAccessMode(IMutablePropertyBase, Nullable<PropertyAccessMode>)

PropertyAccessMode設定要用於這個屬性的 。

public static void SetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IMutablePropertyBase property, Microsoft.EntityFrameworkCore.Metadata.PropertyAccessMode? propertyAccessMode);
static member SetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IMutablePropertyBase * Nullable<Microsoft.EntityFrameworkCore.Metadata.PropertyAccessMode> -> unit
<Extension()>
Public Sub SetPropertyAccessMode (property As IMutablePropertyBase, propertyAccessMode As Nullable(Of PropertyAccessMode))

參數

property
IMutablePropertyBase

要設定存取模式的屬性。

propertyAccessMode
Nullable<PropertyAccessMode>

PropertyAccessMode 清除模式集的 、 或 null。

適用於

SetPropertyAccessMode(IMutablePropertyBase, Nullable<PropertyAccessMode>)

PropertyAccessMode設定要用於這個屬性的 。

public static void SetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IMutablePropertyBase property, Microsoft.EntityFrameworkCore.PropertyAccessMode? propertyAccessMode);
static member SetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IMutablePropertyBase * Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode> -> unit
<Extension()>
Public Sub SetPropertyAccessMode (property As IMutablePropertyBase, propertyAccessMode As Nullable(Of PropertyAccessMode))

參數

property
IMutablePropertyBase

要設定存取模式的屬性。

propertyAccessMode
Nullable<PropertyAccessMode>

PropertyAccessMode 清除模式集的 、 或 null。

適用於