IMutableEntityType.GetDeclaredServiceProperties 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得在此實體類型上宣告的所有服務屬性。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IMutableServiceProperty> GetDeclaredServiceProperties ();
abstract member GetDeclaredServiceProperties : unit -> seq<Microsoft.EntityFrameworkCore.Metadata.IMutableServiceProperty>
override this.GetDeclaredServiceProperties : unit -> seq<Microsoft.EntityFrameworkCore.Metadata.IMutableServiceProperty>
Public Overridable Function GetDeclaredServiceProperties () As IEnumerable(Of IMutableServiceProperty)
傳回
宣告的服務屬性。
備註
這個方法不會傳回在基底類型上宣告的屬性。 在逐一查看所有實體類型,以避免多次處理相同的屬性時很有用。 使用 GetServiceProperties() 也會傳回基底類型上宣告的屬性。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應