Share via


MigrationsSqlGenerator.CheckConstraint Methode

Definition

Überlädt

CheckConstraint(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Generiert ein SQL-Fragment für eine Überprüfungseinschränkung eines AddCheckConstraintOperation.

CheckConstraint(CreateCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Generiert ein SQL-Fragment für eine Überprüfungseinschränkung eines CreateCheckConstraintOperation.

CheckConstraint(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Generiert ein SQL-Fragment für eine Überprüfungseinschränkung eines 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)

Parameter

operation
AddCheckConstraintOperation

Der Vorgang.

model
IModel

Das Zielmodell, das sein kann, wenn die Vorgänge ohne ein Modell vorhanden sind null .

builder
MigrationCommandListBuilder

Der Befehls-Generator, der zum Hinzufügen des SQL-Fragments verwendet werden soll.

Gilt für:

CheckConstraint(CreateCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Generiert ein SQL-Fragment für eine Überprüfungseinschränkung eines 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)

Parameter

operation
CreateCheckConstraintOperation

Der Vorgang.

model
IModel

Das Zielmodell, das sein kann, wenn die Vorgänge ohne ein Modell vorhanden sind null .

builder
MigrationCommandListBuilder

Der Befehls-Generator, der zum Hinzufügen des SQL-Fragments verwendet werden soll.

Gilt für: