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
public class MigrationsScaffolder : Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsScaffolder
type MigrationsScaffolder = class
type MigrationsScaffolder = class
interface IMigrationsScaffolder
Public Class MigrationsScaffolder
Public Class MigrationsScaffolder
Implements IMigrationsScaffolder
- Inheritance
-
MigrationsScaffolder
- Implements
Remarks
See Database migrations, and EF Core design-time services for more information and examples.
Constructors
Properties
Dependencies |
Dependencies for this service. |
Methods
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) |
Removes the previous migration. |
RemoveMigration(String, String, Boolean, String) |
Removes the previous migration. |
Save(String, ScaffoldedMigration, String) |
Saves a scaffolded migration to files. |
ScaffoldMigration(String, String, String) |
Scaffolds a new migration. |
ScaffoldMigration(String, String, String, String) |
Scaffolds a new migration. |
TryGetProjectFile(String, String) |
Tries to find a file under the project directory. |
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for