次の方法で共有


MigrationsScaffolder.ScaffoldMigration Method

Definition

Overloads

ScaffoldMigration(String, String, String)

Scaffolds a new migration.

ScaffoldMigration(String, String, String, String)

Scaffolds a new migration.

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

Scaffolds a new migration.

ScaffoldMigration(String, String, String)

Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs

Scaffolds a new migration.

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

Parameters

migrationName
String

The migration's name.

rootNamespace
String

The project's root namespace.

subNamespace
String

The migration's sub-namespace.

Returns

The scaffolded migration.

Applies to

ScaffoldMigration(String, String, String, String)

Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs

Scaffolds a new migration.

public virtual Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration ScaffoldMigration (string migrationName, string rootNamespace, string subNamespace = default, string language = default);
public virtual 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
override this.ScaffoldMigration : string * string * string * string -> Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration
Public Overridable 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, null to indicate no automatic namespace generation, just use sub-namespace as is.

subNamespace
String

The migration's sub-namespace. Note: the root-namespace and the sub-namespace should not both be empty.

language
String

The project's language.

Returns

The scaffolded migration.

Implements

Applies to

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

Source:
MigrationsScaffolder.cs

Scaffolds a new migration.

public virtual 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
override this.ScaffoldMigration : string * string * string * string * bool -> Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration
Public Overridable 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, null to indicate no automatic namespace generation, just use sub-namespace as is.

subNamespace
String

The migration's sub-namespace. Note: the root-namespace and the sub-namespace should not both be empty.

language
String

The project's language.

dryRun
Boolean

If true, then nothing is actually written to disk.

Returns

The scaffolded migration.

Implements

Applies to