ICSharpMigrationOperationGenerator.Generate Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generate(String, IReadOnlyList<MigrationOperation>, IndentedStringBuilder) |
Generates code for creating MigrationOperation objects. |
Generate(String, IReadOnlyList<MigrationOperation>, IndentedStringBuilder) |
Generates code for creating MigrationOperation objects. |
Generates code for creating MigrationOperation objects.
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)
Parameters
- builderName
- String
The MigrationOperation variable name.
- operations
- IReadOnlyList<MigrationOperation>
The operations.
- builder
- IndentedStringBuilder
The builder code is added to.
Applies to
Entity Framework Core 9.0 ja muud versioonid
Toode | Versioonid |
---|---|
Entity Framework Core | 5.0, 6.0, 7.0, 8.0, 9.0 |
Generates code for creating MigrationOperation objects.
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)
Parameters
- builderName
- String
The MigrationOperation variable name.
- operations
- IReadOnlyList<MigrationOperation>
The operations.
- builder
- Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder
The builder code is added to.
Applies to
Entity Framework Core 3.1 ja muud versioonid
Toode | Versioonid |
---|---|
Entity Framework Core | 2.0, 2.1, 2.2, 3.0, 3.1 |
Toote „Entity Framework“ tagasiside
Entity Framework on avatud lähtekoodiga projekt. Tagasiside andmiseks valige link: