Freigeben über


IMigrationsSqlGenerator.Generate Methode

Definition

Überlädt

Generate(IReadOnlyList<MigrationOperation>, IModel)

Generiert Befehle aus einer Liste von Vorgängen.

Generate(IReadOnlyList<MigrationOperation>, IModel, MigrationsSqlGenerationOptions)

Generiert Befehle aus einer Liste von Vorgängen.

Generate(IReadOnlyList<MigrationOperation>, IModel)

Generiert Befehle aus einer Liste von Vorgängen.

public System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> Generate (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> operations, Microsoft.EntityFrameworkCore.Metadata.IModel model = default);
abstract member Generate : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> * Microsoft.EntityFrameworkCore.Metadata.IModel -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand>
Public Function Generate (operations As IReadOnlyList(Of MigrationOperation), Optional model As IModel = Nothing) As IReadOnlyList(Of MigrationCommand)

Parameter

operations
IReadOnlyList<MigrationOperation>

Die Vorgänge.

model
IModel

Das Zielmodell, das sein kann, wenn die Vorgänge ohne ein Modell vorhanden sind null .

Gibt zurück

Die Liste der Befehle, die ausgeführt oder skriptiert werden sollen.

Gilt für:

Generate(IReadOnlyList<MigrationOperation>, IModel, MigrationsSqlGenerationOptions)

Generiert Befehle aus einer Liste von Vorgängen.

public System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> Generate (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> operations, Microsoft.EntityFrameworkCore.Metadata.IModel model = default, Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions options = Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions.Default);
public System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> Generate (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> operations, Microsoft.EntityFrameworkCore.Metadata.IModel? model = default, Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions options = Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions.Default);
abstract member Generate : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand>
Public Function Generate (operations As IReadOnlyList(Of MigrationOperation), Optional model As IModel = Nothing, Optional options As MigrationsSqlGenerationOptions = Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions.Default) As IReadOnlyList(Of MigrationCommand)

Parameter

operations
IReadOnlyList<MigrationOperation>

Die Vorgänge.

model
IModel

Das Zielmodell, das sein kann, wenn die Vorgänge ohne ein Modell vorhanden sind null .

options
MigrationsSqlGenerationOptions

Die Optionen, die beim Generieren von Befehlen verwendet werden sollen.

Gibt zurück

Die Liste der Befehle, die ausgeführt oder skriptiert werden sollen.

Gilt für: