MigrationsSqlGenerator.CreateTablePrimaryKeyConstraint(CreateTableOperation, IModel, MigrationCommandListBuilder) Yöntem

Tanım

bir SQL anahtarı kısıtlaması için bir parça CreateTableOperation üretir.

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)

Parametreler

operation
CreateTableOperation

işlemi.

model
IModel

İşlemler model null olmadan mevcutsa hedef model olabilir.

builder
MigrationCommandListBuilder

Veri parçasını eklemek için kullanabileceğiniz SQL oluşturucu.

Şunlara uygulanır