IMigrationsSqlGenerator.Generate Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
Generate(IReadOnlyList<MigrationOperation>, IModel) |
Gera comandos de uma lista de operações. |
Generate(IReadOnlyList<MigrationOperation>, IModel, MigrationsSqlGenerationOptions) |
Gera comandos de uma lista de operações. |
Generate(IReadOnlyList<MigrationOperation>, IModel)
Gera comandos de uma lista de operações.
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)
Parâmetros
- operations
- IReadOnlyList<MigrationOperation>
As operações.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
Retornos
A lista de comandos a serem executados ou roteirizados.
Aplica-se a
Generate(IReadOnlyList<MigrationOperation>, IModel, MigrationsSqlGenerationOptions)
- Origem:
- IMigrationsSqlGenerator.cs
- Origem:
- IMigrationsSqlGenerator.cs
- Origem:
- IMigrationsSqlGenerator.cs
Gera comandos de uma lista de operações.
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)
Parâmetros
- operations
- IReadOnlyList<MigrationOperation>
As operações.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- options
- MigrationsSqlGenerationOptions
As opções a serem usadas ao gerar comandos.
Retornos
A lista de comandos a serem executados ou roteirizados.
Aplica-se a
Entity Framework