IReadOnlyEntityType.GetDeclaredServiceProperties 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得在此實體類型上宣告的所有服務屬性。
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyServiceProperty> GetDeclaredServiceProperties ();
abstract member GetDeclaredServiceProperties : unit -> seq<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyServiceProperty>
Public Function GetDeclaredServiceProperties () As IEnumerable(Of IReadOnlyServiceProperty)
傳回
宣告的服務屬性。
備註
這個方法不會傳回在基底類型上宣告的屬性。 逐一查看所有實體類型時,可避免多次處理相同的屬性。 使用 GetServiceProperties() 也會傳回基底類型上宣告的屬性。