MigrationBuilder.AlterDatabase 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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)
返回
一个生成器,允许将批注添加到操作中。