Compartir a través de


MigrationsCodeGenerator.GenerateMigration Método

Definición

Genera el código de migración.

public abstract string GenerateMigration (string migrationNamespace, string migrationName, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> upOperations, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> downOperations);
public abstract string GenerateMigration (string? migrationNamespace, string migrationName, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> upOperations, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> downOperations);
abstract member GenerateMigration : string * string * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> -> string
Public MustOverride Function GenerateMigration (migrationNamespace As String, migrationName As String, upOperations As IReadOnlyList(Of MigrationOperation), downOperations As IReadOnlyList(Of MigrationOperation)) As String

Parámetros

migrationNamespace
String

Espacio de nombres de la migración.

migrationName
String

Nombre de la migración.

upOperations
IReadOnlyList<MigrationOperation>

Las operaciones ascendentes de la migración.

downOperations
IReadOnlyList<MigrationOperation>

Las operaciones inactivas de la migración.

Devoluciones

Código de migración.

Implementaciones

Se aplica a