語言

IConventionPropertyBuilder.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 為此性質設為 。

適用於