语言

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

要为其获取主键和备用键的属性。

返回

使用此属性的主键和备用键。

适用于