Bagikan melalui


MutablePropertyExtensions.GetContainingPrimaryKey(IMutableProperty) Metode

Definisi

Perhatian

Use FindContainingPrimaryKey()

Mendapatkan kunci primer yang menggunakan properti ini (termasuk kunci primer komposit tempat properti ini disertakan).

public static Microsoft.EntityFrameworkCore.Metadata.IMutableKey GetContainingPrimaryKey (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
[System.Obsolete("Use FindContainingPrimaryKey()")]
public static Microsoft.EntityFrameworkCore.Metadata.IMutableKey GetContainingPrimaryKey (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
static member GetContainingPrimaryKey : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
[<System.Obsolete("Use FindContainingPrimaryKey()")>]
static member GetContainingPrimaryKey : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
<Extension()>
Public Function GetContainingPrimaryKey (property As IMutableProperty) As IMutableKey

Parameter

property
IMutableProperty

Properti untuk mendapatkan kunci primer.

Mengembalikan

Primer yang menggunakan properti ini, atau null jika bukan bagian dari kunci primer.

Atribut

Berlaku untuk