MutableEntityTypeExtensions.SetNavigationAccessMode 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
PropertyAccessMode設定要用於巡覽這個實體型別的 。
請注意,個別導覽可以覆寫此存取模式。 此處設定的值將用於未指定任何覆寫的任何導覽。
public static void SetNavigationAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, Microsoft.EntityFrameworkCore.PropertyAccessMode? propertyAccessMode);
static member SetNavigationAccessMode : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode> -> unit
<Extension()>
Public Sub SetNavigationAccessMode (entityType As IMutableEntityType, propertyAccessMode As Nullable(Of PropertyAccessMode))
參數
- entityType
- IMutableEntityType
要設定存取模式的實體類型。
- propertyAccessMode
- Nullable<PropertyAccessMode>
要 PropertyAccessMode 清除模式集的 、 或 null。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應