MigrationBuilder.DropPrimaryKey(String, String, String) Yöntem

Tanım

Var olan bir DropPrimaryKeyOperation birincil anahtarı bırakmak için bir derlemesi.

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation> DropPrimaryKey (string name, string table, string schema = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation> DropPrimaryKey (string name, string table, string? schema = default);
abstract member DropPrimaryKey : string * string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation>
override this.DropPrimaryKey : string * string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation>
Public Overridable Function DropPrimaryKey (name As String, table As String, Optional schema As String = Nothing) As OperationBuilder(Of DropPrimaryKeyOperation)

Parametreler

name
String

Bırakması gereken birincil anahtar kısıtlaması adı.

table
String

Anahtarı içeren tablo.

schema
String

Tabloyu içeren veya varsayılan null şemayı kullanan şema.

Döndürülenler

OperationBuilder<DropPrimaryKeyOperation>

Ek açıklamaların işleme eklenmesine izin vermek için bir oluşturucu.

Açıklamalar

Daha fazla bilgi için bkz. Veritabanı geçişleri.

Şunlara uygulanır