IConventionEntityType.GetDeclaredServiceProperties 方法

定義

取得在此實體類型上宣告的所有服務屬性。

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionServiceProperty> GetDeclaredServiceProperties ();
abstract member GetDeclaredServiceProperties : unit -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionServiceProperty>
override this.GetDeclaredServiceProperties : unit -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionServiceProperty>
Public Overridable Function GetDeclaredServiceProperties () As IEnumerable(Of IConventionServiceProperty)

傳回

宣告的服務屬性。

備註

這個方法不會傳回在基底類型上宣告的屬性。 在逐一查看所有實體類型,以避免多次處理相同的屬性時很有用。 使用 GetServiceProperties() 也會傳回基底類型上宣告的屬性。

適用於