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


MigrationsSqlGenerator.CreateTableCheckConstraints Метод

Определение

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

protected virtual void CreateTableCheckConstraints (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void CreateTableCheckConstraints (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member CreateTableCheckConstraints : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.CreateTableCheckConstraints : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub CreateTableCheckConstraints (operation As CreateTableOperation, model As IModel, builder As MigrationCommandListBuilder)

Параметры

operation
CreateTableOperation

Операция.

model
IModel

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

builder
MigrationCommandListBuilder

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

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