IEntityType.GetProperties 方法

定義

取得這個實體類型上定義的屬性。

public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IProperty> GetProperties ();
abstract member GetProperties : unit -> seq<Microsoft.EntityFrameworkCore.Metadata.IProperty>
Public Function GetProperties () As IEnumerable(Of IProperty)

傳回

在這個實體類型上定義的屬性。

實作

備註

此 API 只會傳回純量屬性,而且不會傳回導覽屬性。 使用 GetNavigations() 來取得導覽屬性。

適用於