IConventionModelBuilder.CanSetPropertyAccessMode(Nullable<PropertyAccessMode>, Boolean) Yöntem

Tanım

Verilen özellik erişim modunun geçerli yapılandırma kaynağından ayarlanıp ayarlana olmadığını belirten bir değer döndürür

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

Parametreler

propertyAccessMode
Nullable<PropertyAccessMode>

Bu PropertyAccessMode modelin özellikleri için kullanmak için .

fromDataAnnotation
Boolean

Yapılandırmanın veri ek açıklaması kullanılarak belirtilmemiş olup olmadığını gösterir.

Döndürülenler

Boolean

true verilen özellik erişim modu ayarlansa.

Şunlara uygulanır