語言

IConventionPropertyBaseBuilder.CanSetPropertyAccessMode 方法

定義

回傳一個值,表示 PropertyAccessMode 是否能從目前設定來源設定此類似性質的物件。

public bool CanSetPropertyAccessMode(Microsoft.EntityFrameworkCore.PropertyAccessMode? propertyAccessMode, bool fromDataAnnotation = false);
abstract member CanSetPropertyAccessMode : Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode> * bool -> bool
Public Function CanSetPropertyAccessMode (propertyAccessMode As Nullable(Of PropertyAccessMode), Optional fromDataAnnotation As Boolean = false) As Boolean

參數

propertyAccessMode
Nullable<PropertyAccessMode>

用來 PropertyAccessMode 表示這個類性質的物件。

fromDataAnnotation
Boolean

表示配置是否以資料註解方式指定。

傳回

true 如果 可以 PropertyAccessMode 為這個類性質的物件設定。

適用於