共用方式為


IConventionEntityType.GetKeys 方法

定義

取得這個實體類型的主要和替代索引鍵。

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

傳回

主要和替代索引鍵。

適用於