ModelExtensions.GetPropertyAccessMode(IModel) 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.
Mendapatkan yang PropertyAccessMode digunakan untuk properti jenis entitas dalam model ini.
Perhatikan bahwa jenis entitas individual dapat mengambil alih mode akses ini, dan properti individual dari jenis entitas dapat menggantikan mode akses yang diatur pada jenis entitas. Nilai yang dikembalikan di sini akan digunakan untuk properti apa pun yang tidak ada penimpaan yang telah ditentukan.
public static Microsoft.EntityFrameworkCore.Metadata.PropertyAccessMode? GetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IModel model);
public static Microsoft.EntityFrameworkCore.PropertyAccessMode? GetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IModel model);
[System.Diagnostics.DebuggerStepThrough]
public static Microsoft.EntityFrameworkCore.PropertyAccessMode? GetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IModel model);
[System.Diagnostics.DebuggerStepThrough]
public static Microsoft.EntityFrameworkCore.PropertyAccessMode GetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IModel model);
static member GetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IModel -> Nullable<Microsoft.EntityFrameworkCore.Metadata.PropertyAccessMode>
static member GetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IModel -> Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode>
[<System.Diagnostics.DebuggerStepThrough>]
static member GetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IModel -> Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode>
[<System.Diagnostics.DebuggerStepThrough>]
static member GetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.PropertyAccessMode
<Extension()>
Public Function GetPropertyAccessMode (model As IModel) As Nullable(Of PropertyAccessMode)
<Extension()>
Public Function GetPropertyAccessMode (model As IModel) As PropertyAccessMode
Parameter
- model
- IModel
Model untuk mendapatkan mode akses.
Mengembalikan
Mode akses sedang digunakan, atau null jika mode akses default sedang digunakan.
- Atribut
Berlaku untuk
Entity Framework
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk