ICSharpMigrationOperationGenerator.Generate Method

Definition

Overloads

Generate(String, IReadOnlyList<MigrationOperation>, IndentedStringBuilder)

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

Generates code for creating MigrationOperation objects.

C#
public void Generate (string builderName, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> operations, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder builder);

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

Generate(String, IReadOnlyList<MigrationOperation>, IndentedStringBuilder)

Generates code for creating MigrationOperation objects.

C#
public void Generate (string builderName, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> operations, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder builder);

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