MutableEntityTypeExtensions.SetPropertyAccessMode 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.
Overload
SetPropertyAccessMode(IMutableEntityType, Nullable<PropertyAccessMode>) |
PropertyAccessMode Mengatur untuk digunakan untuk properti jenis entitas ini. Perhatikan bahwa properti individual dapat mengambil alih mode akses ini. Nilai yang ditetapkan di sini akan digunakan untuk properti apa pun yang tidak ada penimpaan yang telah ditentukan. |
SetPropertyAccessMode(IMutableEntityType, Nullable<PropertyAccessMode>) |
PropertyAccessMode Mengatur untuk digunakan untuk properti dan navigasi jenis entitas ini. Perhatikan bahwa properti dan navigasi individual dapat mengambil alih mode akses ini. Nilai yang ditetapkan di sini akan digunakan untuk properti atau navigasi apa pun yang tidak ada penimpaan yang telah ditentukan. |
SetPropertyAccessMode(IMutableEntityType, Nullable<PropertyAccessMode>)
PropertyAccessMode Mengatur untuk digunakan untuk properti jenis entitas ini.
Perhatikan bahwa properti individual dapat mengambil alih mode akses ini. Nilai yang ditetapkan di sini akan digunakan untuk properti apa pun yang tidak ada penimpaan yang telah ditentukan.
public static void SetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.PropertyAccessMode? propertyAccessMode);
static member SetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Nullable<Microsoft.EntityFrameworkCore.Metadata.PropertyAccessMode> -> unit
<Extension()>
Public Sub SetPropertyAccessMode (entityType As IMutableEntityType, propertyAccessMode As Nullable(Of PropertyAccessMode))
Parameter
- entityType
- IMutableEntityType
Jenis entitas untuk mengatur mode akses.
- propertyAccessMode
- Nullable<PropertyAccessMode>
PropertyAccessMode, atau null untuk menghapus set mode.
Berlaku untuk
SetPropertyAccessMode(IMutableEntityType, Nullable<PropertyAccessMode>)
PropertyAccessMode Mengatur untuk digunakan untuk properti dan navigasi jenis entitas ini.
Perhatikan bahwa properti dan navigasi individual dapat mengambil alih mode akses ini. Nilai yang ditetapkan di sini akan digunakan untuk properti atau navigasi apa pun yang tidak ada penimpaan yang telah ditentukan.
public static void SetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, Microsoft.EntityFrameworkCore.PropertyAccessMode? propertyAccessMode);
static member SetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode> -> unit
<Extension()>
Public Sub SetPropertyAccessMode (entityType As IMutableEntityType, propertyAccessMode As Nullable(Of PropertyAccessMode))
Parameter
- entityType
- IMutableEntityType
Jenis entitas untuk mengatur mode akses.
- propertyAccessMode
- Nullable<PropertyAccessMode>
PropertyAccessMode, atau null untuk menghapus set mode.
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