Share via


MigrationsSqlGenerator.CreateTablePrimaryKeyConstraint Methode

Definition

Generiert ein SQL-Fragment für die Primärschlüsseleinschränkung eines CreateTableOperation.

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

Parameter

operation
CreateTableOperation

Der Vorgang.

model
IModel

Das Zielmodell, das sein kann, wenn die Vorgänge ohne ein Modell vorhanden sind null .

builder
MigrationCommandListBuilder

Der Befehls-Generator, der zum Hinzufügen des SQL-Fragments verwendet werden soll.

Gilt für: