IConventionPropertyBaseBuilder<TBuilder>.CanSetPropertyAccessMode Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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
true
PropertyAccessMode jika dapat diatur untuk objek seperti properti ini.