语言

RelationalPropertyExtensions.FindSharedTableRootPrimaryKeyProperty 方法

定义

查找 IProperty 表示与给定属性相同的主键属性,但可能位于共享根表中。

此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

public static Microsoft.EntityFrameworkCore.Metadata.IProperty FindSharedTableRootPrimaryKeyProperty(this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member FindSharedTableRootPrimaryKeyProperty : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.IProperty
<Extension()>
Public Function FindSharedTableRootPrimaryKeyProperty (property As IProperty) As IProperty

参数

property
IProperty

属性。

返回

找到的属性,或者 null 如果未找到任何属性。

适用于