Condividi tramite


MigrationBuilder.AlterDatabase Metodo

Definizione

Overload

AlterDatabase(String, String)

Compila un oggetto AlterDatabaseOperation per modificare un database esistente.

AlterDatabase()

Compila un oggetto AlterDatabaseOperation per modificare un database esistente.

AlterDatabase(String, String)

Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs

Compila un oggetto AlterDatabaseOperation per modificare un database esistente.

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation> AlterDatabase (string collation = default, string oldCollation = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation> AlterDatabase (string? collation = default, string? oldCollation = default);
abstract member AlterDatabase : string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation>
override this.AlterDatabase : string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation>
Public Overridable Function AlterDatabase (Optional collation As String = Nothing, Optional oldCollation As String = Nothing) As AlterOperationBuilder(Of AlterDatabaseOperation)

Parametri

collation
String

Regole di confronto da applicare alla colonna.

oldCollation
String

Regole di confronto precedenti da applicare alla colonna.

Restituisce

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

Commenti

Per altre informazioni ed esempi, vedere Migrazioni di database .

Si applica a

AlterDatabase()

Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs

Compila un oggetto AlterDatabaseOperation per modificare un database esistente.

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation> AlterDatabase ();
abstract member AlterDatabase : unit -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation>
override this.AlterDatabase : unit -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation>
Public Overridable Function AlterDatabase () As AlterOperationBuilder(Of AlterDatabaseOperation)

Restituisce

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

Si applica a