共用方式為


AddCheckConstraintOperation.CreateFrom(ICheckConstraint) 方法

定義

從指定的檢查條件約束建立新的 AddCheckConstraintOperation

public static Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation CreateFrom (Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint checkConstraint);
static member CreateFrom : Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint -> Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation
Public Shared Function CreateFrom (checkConstraint As ICheckConstraint) As AddCheckConstraintOperation

參數

checkConstraint
ICheckConstraint

檢查條件約束。

傳回

作業。

適用於