Поделиться через


MigrationsSqlGenerator.CheckConstraint Метод

Определение

Перегрузки

CheckConstraint(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Создает фрагмент SQL для проверка ограничения AddCheckConstraintOperation.

CheckConstraint(CreateCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Создает фрагмент SQL для проверка ограничения CreateCheckConstraintOperation.

CheckConstraint(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Создает фрагмент SQL для проверка ограничения 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)

Параметры

operation
AddCheckConstraintOperation

Операция.

model
IModel

Целевая модель, которая может быть null , если операции существуют без модели.

builder
MigrationCommandListBuilder

Построитель команд, используемый для добавления фрагмента SQL.

Применяется к

CheckConstraint(CreateCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Создает фрагмент SQL для проверка ограничения 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)

Параметры

operation
CreateCheckConstraintOperation

Операция.

model
IModel

Целевая модель, которая может быть null , если операции существуют без модели.

builder
MigrationCommandListBuilder

Построитель команд, используемый для добавления фрагмента SQL.

Применяется к