IMigrationsScaffolder.ScaffoldMigration Method

Definition

Scaffolds a new migration.

public Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration ScaffoldMigration (string migrationName, string rootNamespace, string subNamespace = default, string language = default);
public Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration ScaffoldMigration (string migrationName, string? rootNamespace, string? subNamespace = default, string? language = default);
abstract member ScaffoldMigration : string * string * string * string -> Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration
Public Function ScaffoldMigration (migrationName As String, rootNamespace As String, Optional subNamespace As String = Nothing, Optional language As String = Nothing) As ScaffoldedMigration

Parameters

migrationName
String

The migration's name.

rootNamespace
String

The project's root namespace.

subNamespace
String

The migration's sub-namespace.

language
String

The project's language.

Returns

The scaffolded migration.

Applies to