MutableTypeBaseExtensions.SetNavigationAccessMode 方法

定義

PropertyAccessMode設定要用於此實體型別導覽的 。

請注意,個別導覽可以覆寫此存取模式。 此處設定的值將用於未指定覆寫的任何流覽。

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))

參數

entityType
IMutableTypeBase

要設定存取模式的型別。

propertyAccessMode
Nullable<PropertyAccessMode>

PropertyAccessMode 清除模式集的 、 或 null

適用於