Partilhar via


AddUniqueConstraintOperation.CreateFrom(IUniqueConstraint) Método

Definição

Cria um novo AddUniqueConstraintOperation da restrição exclusiva especificada.

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

Parâmetros

uniqueConstraint
IUniqueConstraint

A restrição exclusiva.

Retornos

A operação.

Aplica-se a