MutablePropertyExtensions.FindContainingPrimaryKey(IMutableProperty) 方法

定義

取得使用此屬性的主鍵 (包含此屬性的複合主鍵) 。

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

參數

property
IMutableProperty

要為其取得主鍵的屬性。

傳回

使用這個屬性的主鍵,如果 null 它不是主鍵的一部分,則為 。

適用於