PropertyExtensions.GetContainingKeys(IProperty) 方法

定義

取得使用此屬性的所有主要或替代索引鍵, (包含此屬性的複合索引鍵) 。

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IKey> GetContainingKeys (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetContainingKeys : Microsoft.EntityFrameworkCore.Metadata.IProperty -> seq<Microsoft.EntityFrameworkCore.Metadata.IKey>
<Extension()>
Public Function GetContainingKeys (property As IProperty) As IEnumerable(Of IKey)

參數

property
IProperty

要取得主要和替代索引鍵的屬性。

傳回

使用此屬性的主要和替代索引鍵。

適用於