IConventionEntityType.GetProperties 方法

定義

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

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

傳回

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

備註

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

適用於