MigrationBuilder.AlterDatabase 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AlterDatabase(String, String) |
AlterDatabaseOperation建置 以改變現有的資料庫。 |
AlterDatabase() |
AlterDatabaseOperation建置 以改變現有的資料庫。 |
AlterDatabase(String, String)
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()
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)
傳回
允許將批註加入至作業的產生器。