Aracılığıyla paylaş


MutableTypeBaseExtensions.SetNavigationAccessMode Yöntem

Tanım

Bu varlık türündeki PropertyAccessMode gezintiler için kullanılacak öğesini ayarlar.

Tek tek gezintilerin bu erişim modunu geçersiz kılabileceğini unutmayın. Burada ayarlanan değer, geçersiz kılma belirtilmemiş tüm gezintiler için kullanılır.

public static void SetNavigationAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IMutableTypeBase entityType, Microsoft.EntityFrameworkCore.PropertyAccessMode? propertyAccessMode);
static member SetNavigationAccessMode : Microsoft.EntityFrameworkCore.Metadata.IMutableTypeBase * Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode> -> unit
<Extension()>
Public Sub SetNavigationAccessMode (entityType As IMutableTypeBase, propertyAccessMode As Nullable(Of PropertyAccessMode))

Parametreler

entityType
IMutableTypeBase

Erişim modunun ayarlanacağı tür.

propertyAccessMode
Nullable<PropertyAccessMode>

PropertyAccessModemod kümesini temizlemek için veya null .

Şunlara uygulanır