Sdílet prostřednictvím


MigrationsSqlGenerator.CreateTableUniqueConstraints Metoda

Definice

Vygeneruje fragment SQL pro jedinečná CreateTableOperationomezení .

protected virtual void CreateTableUniqueConstraints (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void CreateTableUniqueConstraints (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member CreateTableUniqueConstraints : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.CreateTableUniqueConstraints : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub CreateTableUniqueConstraints (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