次の方法で共有


MigrationsSqlGenerator.PrimaryKeyConstraint メソッド

定義

の主キー制約の SQL フラグメントを生成します AddPrimaryKeyOperation

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

パラメーター

operation
AddPrimaryKeyOperation

操作。

model
IModel

モデル null のない操作が存在する場合のターゲット モデル。

builder
MigrationCommandListBuilder

SQL フラグメントの追加に使用するコマンド ビルダー。

適用対象