MigrationsSqlGenerator.CheckConstraint 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| 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 片段的指令建構器。