共用方式為


ConventionEntityTypeExtensions.GetDeclaredServiceProperties 方法

定義

取得在指定 IConventionEntityType 上宣告的所有服務屬性。

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

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionServiceProperty> GetDeclaredServiceProperties (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
static member GetDeclaredServiceProperties : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionServiceProperty>
<Extension()>
Public Function GetDeclaredServiceProperties (entityType As IConventionEntityType) As IEnumerable(Of IConventionServiceProperty)

參數

entityType
IConventionEntityType

實體類型。

傳回

宣告的服務屬性。

適用於