Partager via


MigrationsSqlGenerator.CreateTablePrimaryKeyConstraint Méthode

Définition

Génère un fragment SQL pour la contrainte de clé primaire d’un 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)

Paramètres

operation
CreateTableOperation

Opération.

model
IModel

Modèle cible qui peut être null si les opérations existent sans modèle.

builder
MigrationCommandListBuilder

Générateur de commandes à utiliser pour ajouter le fragment SQL.

S’applique à