MigrationBuilder.AlterDatabase 方法

定义

重载

AlterDatabase(String, String)

生成 以 AlterDatabaseOperation 更改现有数据库。

AlterDatabase()

生成 以 AlterDatabaseOperation 更改现有数据库。

AlterDatabase(String, String)

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

生成 以 AlterDatabaseOperation 更改现有数据库。

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)

参数

collation
String

要应用于列的排序规则。

oldCollation
String

要应用于列的上一排序规则。

返回

一个生成器,允许将批注添加到操作中。

注解

有关详细信息和示例 ,请参阅数据库迁移

适用于

AlterDatabase()

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

生成 以 AlterDatabaseOperation 更改现有数据库。

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)

返回

一个生成器,允许将批注添加到操作中。

适用于