Compartir a través de


MigrationBuilder.AlterDatabase Método

Definición

Sobrecargas

AlterDatabase(String, String)

Crea un AlterDatabaseOperation objeto para modificar una base de datos existente.

AlterDatabase()

Crea un AlterDatabaseOperation objeto para modificar una base de datos existente.

AlterDatabase(String, String)

Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs

Crea un AlterDatabaseOperation objeto para modificar una base de datos existente.

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)

Parámetros

collation
String

Intercalación que se va a aplicar a la columna.

oldCollation
String

Intercalación anterior que se va a aplicar a la columna.

Devoluciones

Generador para permitir que las anotaciones se agreguen a la operación.

Comentarios

Consulte Migraciones de bases de datos para obtener más información y ejemplos.

Se aplica a

AlterDatabase()

Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs
Source:
MigrationBuilder.cs

Crea un AlterDatabaseOperation objeto para modificar una base de datos existente.

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)

Devoluciones

Generador para permitir que las anotaciones se agreguen a la operación.

Se aplica a