Partager via


AddUniqueConstraintOperation.CreateFrom(IUniqueConstraint) Méthode

Définition

Crée un nouveau AddUniqueConstraintOperation à partir de la contrainte unique spécifiée.

public static Microsoft.EntityFrameworkCore.Migrations.Operations.AddUniqueConstraintOperation CreateFrom (Microsoft.EntityFrameworkCore.Metadata.IUniqueConstraint uniqueConstraint);
static member CreateFrom : Microsoft.EntityFrameworkCore.Metadata.IUniqueConstraint -> Microsoft.EntityFrameworkCore.Migrations.Operations.AddUniqueConstraintOperation
Public Shared Function CreateFrom (uniqueConstraint As IUniqueConstraint) As AddUniqueConstraintOperation

Paramètres

uniqueConstraint
IUniqueConstraint

Contrainte unique.

Retours

Opération.

S’applique à