AddUniqueConstraintOperation.CreateFrom(IUniqueConstraint) 方法

定义

根据指定的唯一约束新建一个 AddUniqueConstraintOperation

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

参数

uniqueConstraint
IUniqueConstraint

唯一约束。

返回

操作。

适用于