共用方式為


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

唯一的條件約束。

傳回

作業。

適用於