MigrationsScaffolder Class
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.
Used to scaffold new migrations.
public class MigrationsScaffolder
[System.Runtime.CompilerServices.Nullable(0)]
public class MigrationsScaffolder : Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsScaffolder
public class MigrationsScaffolder : Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsScaffolder
type MigrationsScaffolder = class
[<System.Runtime.CompilerServices.Nullable(0)>]
type MigrationsScaffolder = class
interface IMigrationsScaffolder
type MigrationsScaffolder = class
interface IMigrationsScaffolder
Public Class MigrationsScaffolder
Public Class MigrationsScaffolder
Implements IMigrationsScaffolder
- Inheritance
-
MigrationsScaffolder
- Attributes
- Implements
Remarks
See Database migrations, and EF Core design-time services for more information and examples.
Constructors
Properties
| Name | Description |
|---|---|
| Dependencies |
Dependencies for this service. |
Methods
| Name | Description |
|---|---|
| GetDirectory(String, String, String) |
Gets the directory of a sibling file. If none, the directory corresponding to the sub-namespace is used. |
| GetNamespace(Type, String) |
Gets the namespace of a sibling type. If none, the default namespace is used. |
| GetSubNamespace(String, String) |
Gets a sub-namespace. |
| RemoveMigration(String, String, Boolean, Boolean) |
Removes the previous migration. |
| RemoveMigration(String, String, Boolean, String, Boolean) |
Removes the previous migration. |
| RemoveMigration(String, String, Boolean, String) |
Removes the previous migration. |
| RemoveMigration(String, String, Boolean) |
Removes the previous migration. |
| Save(String, ScaffoldedMigration, String, Boolean) |
Saves a scaffolded migration to files. |
| Save(String, ScaffoldedMigration, String) |
Saves a scaffolded migration to files. |
| ScaffoldMigration(String, String, String, String, Boolean) |
Scaffolds a new migration. |
| ScaffoldMigration(String, String, String, String) |
Scaffolds a new migration. |
| ScaffoldMigration(String, String, String) |
Scaffolds a new migration. |
| TryGetProjectFile(String, String) |
Tries to find a file under the project directory. |