IMigrationsScaffolder.ScaffoldMigration Method

Definition

Overloads

ScaffoldMigration(String, String, String, String)

Scaffolds a new migration.

ScaffoldMigration(String, String, String, String, Boolean)

Scaffolds a new migration.

ScaffoldMigration(String, String, String, String)

Source:
IMigrationsScaffolder.cs
Source:
IMigrationsScaffolder.cs

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

ScaffoldMigration(String, String, String, String, Boolean)

Source:
IMigrationsScaffolder.cs

Scaffolds a new migration.

public Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration ScaffoldMigration (string migrationName, string? rootNamespace, string? subNamespace = default, string? language = default, bool dryRun = false);
abstract member ScaffoldMigration : string * string * string * string * bool -> Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration
Public Function ScaffoldMigration (migrationName As String, rootNamespace As String, Optional subNamespace As String = Nothing, Optional language As String = Nothing, Optional dryRun As Boolean = false) 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.

dryRun
Boolean

If true, then nothing is actually written to disk.

Returns

The scaffolded migration.

Applies to