语言

RuntimeProperty.IReadOnlyProperty.FindContainingPrimaryKey 方法

定义

获取使用此属性的主键(包括包含此属性的复合主键)。

[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey IReadOnlyProperty.FindContainingPrimaryKey();
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey? IReadOnlyProperty.FindContainingPrimaryKey();
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty.FindContainingPrimaryKey : unit -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty.FindContainingPrimaryKey : unit -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey
Function FindContainingPrimaryKey () As IReadOnlyKey Implements IReadOnlyProperty.FindContainingPrimaryKey

返回

使用此属性的主密钥,或者 null 它不是主键的一部分。

实现

特性

适用于