Sprache

IMigrationsSqlGenerator.Generate Methode

Definition

Überlädt

Name Beschreibung
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 null kann, wenn die Vorgänge ohne Modell vorhanden sind.

Gibt zurück

Die Liste der auszuführenden Befehle oder Skripts.

Gilt für:

Generate(IReadOnlyList<MigrationOperation>, IModel, MigrationsSqlGenerationOptions)

Quelle:
IMigrationsSqlGenerator.cs
Quelle:
IMigrationsSqlGenerator.cs
Quelle:
IMigrationsSqlGenerator.cs
Quelle:
IMigrationsSqlGenerator.cs
Quelle:
IMigrationsSqlGenerator.cs

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 null kann, wenn die Vorgänge ohne Modell vorhanden sind.

options
MigrationsSqlGenerationOptions

Die Beim Generieren von Befehlen zu verwendenden Optionen.

Gibt zurück

Die Liste der auszuführenden Befehle oder Skripts.

Gilt für: