Share via


AddCheckConstraintOperation.CreateFrom(ICheckConstraint) Method

Definition

Creates a new AddCheckConstraintOperation from the specified check constraint.

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

Parameters

checkConstraint
ICheckConstraint

The check constraint.

Returns

The operation.

Applies to