Sdílet prostřednictvím


MigrationsSqlGenerator.CreateTableConstraints Metoda

Definice

Vygeneruje fragment SQL pro omezení .CreateTableOperation

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

Parametry

operation
CreateTableOperation

Operace.

model
IModel

Cílový model, který může být null , pokud operace existují bez modelu.

builder
MigrationCommandListBuilder

Tvůrce příkazů, který se má použít k přidání fragmentu SQL.

Platí pro