Bagikan melalui


MigrationsSqlGenerator.CreateTableUniqueConstraints Metode

Definisi

Menghasilkan fragmen SQL untuk batasan unik dari CreateTableOperation.

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)

Parameter

operation
CreateTableOperation

Operasi.

model
IModel

Model target yang mungkin null jika operasi ada tanpa model.

builder
MigrationCommandListBuilder

Penyusun perintah yang digunakan untuk menambahkan fragmen SQL.

Berlaku untuk