IProperty.GetContainingKeys Method

Definition

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

C#
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IKey> GetContainingKeys ();

Returns

The primary and alternate keys that use this property.

Applies to

Product Versions
Entity Framework Core 6.0, 7.0, 8.0, 9.0