Share via


RelationalKeyExtensions.GetMappedConstraints(IKey) Method

Definition

Gets the unique constraints to which the key is mapped.

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IUniqueConstraint> GetMappedConstraints (this Microsoft.EntityFrameworkCore.Metadata.IKey key);
static member GetMappedConstraints : Microsoft.EntityFrameworkCore.Metadata.IKey -> seq<Microsoft.EntityFrameworkCore.Metadata.IUniqueConstraint>
<Extension()>
Public Function GetMappedConstraints (key As IKey) As IEnumerable(Of IUniqueConstraint)

Parameters

key
IKey

The key.

Returns

The unique constraints to which the key is mapped.

Applies to