Condividi tramite


MigrationBuilder.DropUniqueConstraint(String, String, String) Metodo

Definizione

Compila un oggetto DropUniqueConstraintOperation per eliminare un vincolo univoco esistente.

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

Parametri

name
String

Nome del vincolo da eliminare.

table
String

Tabella contenente il vincolo.

schema
String

Schema contenente la tabella oppure null usare lo schema predefinito.

Restituisce

Generatore per consentire l'aggiunta di annotazioni all'operazione.

Commenti

Per altre informazioni ed esempi, vedere Migrazioni di database .

Si applica a