Table of Contents

Interface IUniqueConstraint

Namespace
Microsoft.EntityFrameworkCore.Metadata
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

Represents a unique constraint.

public interface IUniqueConstraint : IAnnotatable
Extension Methods

Properties

Columns

Gets the columns that are participating in the unique constraint.

IReadOnlyList<IColumn> Columns { get; }

Property Value

IReadOnlyList<IColumn>

MappedKeys

Gets the mapped keys.

IEnumerable<IKey> MappedKeys { get; }

Property Value

IEnumerable<IKey>

Name

Gets the name of the unique constraint.

string Name { get; }

Property Value

string

Table

Gets the table on with the unique constraint is declared.

ITable Table { get; }

Property Value

ITable