Bagikan melalui


MutableEntityTypeExtensions.SetPropertyAccessMode Metode

Definisi

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