MigrationsSqlGenerator.CheckConstraint Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CheckConstraint(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder) |
Generates a SQL fragment for a check constraint of an AddCheckConstraintOperation. |
CheckConstraint(CreateCheckConstraintOperation, IModel, MigrationCommandListBuilder) |
Generates a SQL fragment for a check constraint of an CreateCheckConstraintOperation. |
CheckConstraint(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder)
Generates a SQL fragment for a check constraint of an AddCheckConstraintOperation.
protected virtual void CheckConstraint (Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void CheckConstraint (Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member CheckConstraint : Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.CheckConstraint : Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub CheckConstraint (operation As AddCheckConstraintOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameters
- operation
- AddCheckConstraintOperation
The operation.
- model
- IModel
The target model which may be null
if the operations exist without a model.
- builder
- MigrationCommandListBuilder
The command builder to use to add the SQL fragment.
Applies to
CheckConstraint(CreateCheckConstraintOperation, IModel, MigrationCommandListBuilder)
Generates a SQL fragment for a check constraint of an CreateCheckConstraintOperation.
protected virtual void CheckConstraint (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member CheckConstraint : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.CheckConstraint : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub CheckConstraint (operation As CreateCheckConstraintOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameters
- operation
- CreateCheckConstraintOperation
The operation.
- model
- IModel
The target model which may be null
if the operations exist without a model.
- builder
- MigrationCommandListBuilder
The command builder to use to add the SQL fragment.
Applies to
Entity Framework