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