Share via


IProperty.GetContainingKeys Method

Definition

Gets all primary or alternate keys that use this property (including composite keys in which this property is included).

public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IKey> GetContainingKeys ();
abstract member GetContainingKeys : unit -> seq<Microsoft.EntityFrameworkCore.Metadata.IKey>
Public Function GetContainingKeys () As IEnumerable(Of IKey)

Returns

The primary and alternate keys that use this property.

Applies to