Share via


IConventionProperty.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.IConventionKey> GetContainingKeys ();
abstract member GetContainingKeys : unit -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionKey>
Public Function GetContainingKeys () As IEnumerable(Of IConventionKey)

Returns

The primary and alternate keys that use this property.

Applies to