MigrationsSqlGenerator.CheckConstraint Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
CheckConstraint(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder) |
Genera un fragmento de SQL para una restricción check de .AddCheckConstraintOperation |
CheckConstraint(CreateCheckConstraintOperation, IModel, MigrationCommandListBuilder) |
Genera un fragmento de SQL para una restricción check de .CreateCheckConstraintOperation |
CheckConstraint(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder)
Genera un fragmento de SQL para una restricción check de .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)
Parámetros
- operation
- AddCheckConstraintOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para agregar el fragmento de SQL.
Se aplica a
CheckConstraint(CreateCheckConstraintOperation, IModel, MigrationCommandListBuilder)
Genera un fragmento de SQL para una restricción check de .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)
Parámetros
- operation
- CreateCheckConstraintOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para agregar el fragmento de SQL.