Share via


MigrationBuilder.AlterDatabase Method

Definition

Overloads

AlterDatabase(String, String)

Builds an AlterDatabaseOperation to alter an existing database.

AlterDatabase()

Builds an AlterDatabaseOperation to alter an existing database.

AlterDatabase(String, String)

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

Builds an AlterDatabaseOperation to alter an existing database.

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)

Parameters

collation
String

A collation to apply to the column.

oldCollation
String

The previous collation to apply to the column.

Returns

A builder to allow annotations to be added to the operation.

Remarks

See Database migrations for more information and examples.

Applies to

AlterDatabase()

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

Builds an AlterDatabaseOperation to alter an existing database.

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)

Returns

A builder to allow annotations to be added to the operation.

Applies to