IMigrationsScaffolder.ScaffoldMigration Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Entity Framework