ICSharpMigrationOperationGenerator.Generate 方法

定义

重载

Generate(String, IReadOnlyList<MigrationOperation>, IndentedStringBuilder)

生成用于创建 MigrationOperation 对象的代码。

Generate(String, IReadOnlyList<MigrationOperation>, IndentedStringBuilder)

生成用于创建 MigrationOperation 对象的代码。

Generate(String, IReadOnlyList<MigrationOperation>, IndentedStringBuilder)

Source:
ICSharpMigrationOperationGenerator.cs
Source:
ICSharpMigrationOperationGenerator.cs
Source:
ICSharpMigrationOperationGenerator.cs

生成用于创建 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

将生成器代码添加到 。

适用于