Bagikan melalui


IConventionPropertyBaseBuilder<TBuilder>.CanSetPropertyAccessMode Metode

Definisi

Mengembalikan nilai yang menunjukkan apakah PropertyAccessMode dapat diatur untuk objek seperti properti ini dari sumber konfigurasi saat ini.

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

Parameter

propertyAccessMode
Nullable<PropertyAccessMode>

yang PropertyAccessMode akan digunakan untuk objek seperti properti ini.

fromDataAnnotation
Boolean

Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.

Mengembalikan

truePropertyAccessMode jika dapat diatur untuk objek seperti properti ini.

Berlaku untuk