ICSharpMigrationOperationGenerator.Generate 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Generate(String, IReadOnlyList<MigrationOperation>, IndentedStringBuilder)
產生用於建立 MigrationOperation 物件的程式碼。
public void Generate (string builderName, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> operations, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder builder);
abstract member Generate : string * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Public Sub Generate (builderName As String, operations As IReadOnlyList(Of MigrationOperation), builder As IndentedStringBuilder)
參數
- builderName
- String
變數 MigrationOperation 名稱。
- operations
- IReadOnlyList<MigrationOperation>
作業。
- builder
- IndentedStringBuilder
建立器程式碼會新增至 。
適用於
Generate(String, IReadOnlyList<MigrationOperation>, IndentedStringBuilder)
產生用於建立 MigrationOperation 物件的程式碼。
public void Generate (string builderName, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> operations, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder builder);
abstract member Generate : string * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Public Sub Generate (builderName As String, operations As IReadOnlyList(Of MigrationOperation), builder As IndentedStringBuilder)
參數
- builderName
- String
變數 MigrationOperation 名稱。
- operations
- IReadOnlyList<MigrationOperation>
作業。
- builder
- Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder
建立器程式碼會新增至 。