IMigrationsSqlGenerator.Generate Yöntem

Tanım

Aşırı Yüklemeler

Generate(IReadOnlyList<MigrationOperation>, IModel)

İşlem listesinden komutlar oluşturur.

Generate(IReadOnlyList<MigrationOperation>, IModel, MigrationsSqlGenerationOptions)

İşlem listesinden komutlar oluşturur.

Generate(IReadOnlyList<MigrationOperation>, IModel)

İşlem listesinden komutlar oluşturur.

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)

Parametreler

operations
IReadOnlyList<MigrationOperation>

İşlemler.

model
IModel

İşlemlerin bir model olmadan mevcut olması null durumunda olabilecek hedef model.

Döndürülenler

Yürütülecek veya betik oluşturulacak komutların listesi.

Şunlara uygulanır

Generate(IReadOnlyList<MigrationOperation>, IModel, MigrationsSqlGenerationOptions)

İşlem listesinden komutlar oluşturur.

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)

Parametreler

operations
IReadOnlyList<MigrationOperation>

İşlemler.

model
IModel

İşlemlerin bir model olmadan mevcut olması null durumunda olabilecek hedef model.

options
MigrationsSqlGenerationOptions

Komut oluştururken kullanılacak seçenekler.

Döndürülenler

Yürütülecek veya betik oluşturulacak komutların listesi.

Şunlara uygulanır