Bagikan melalui


MutableTypeBaseExtensions.SetPropertyAccessMode Metode

Definisi

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.IMutableTypeBase entityType, Microsoft.EntityFrameworkCore.PropertyAccessMode? propertyAccessMode);
static member SetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IMutableTypeBase * Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode> -> unit
<Extension()>
Public Sub SetPropertyAccessMode (entityType As IMutableTypeBase, propertyAccessMode As Nullable(Of PropertyAccessMode))

Parameter

entityType
IMutableTypeBase

Jenis untuk mengatur mode akses.

propertyAccessMode
Nullable<PropertyAccessMode>

PropertyAccessMode, atau null untuk menghapus set mode.

Berlaku untuk