MutableEntityTypeExtensions.GetDeclaredProperties(IMutableEntityType) 方法

定義

取得指定 IMutableEntityType 上宣告的所有非導覽屬性。

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

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

參數

entityType
IMutableEntityType

實體類型。

傳回

宣告的非導覽屬性。

適用於