MigrationScaffolder 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.
Scaffolds code-based migrations to apply pending model changes to the database.
public class MigrationScaffolder
type MigrationScaffolder = class
Public Class MigrationScaffolder
- Inheritance
-
MigrationScaffolder
Constructors
MigrationScaffolder(DbMigrationsConfiguration) |
Initializes a new instance of the MigrationScaffolder class. |
Properties
Namespace |
Gets or sets the namespace used in the migration's generated code. By default, this is the same as MigrationsNamespace on the migrations configuration object passed into the constructor. For VB.NET projects, this will need to be updated to take into account the project's root namespace. |
Methods
Scaffold(String, Boolean) |
Scaffolds a code based migration to apply any pending model changes to the database. |
Scaffold(String) |
Scaffolds a code based migration to apply any pending model changes to the database. |
ScaffoldInitialCreate() |
Scaffolds the initial code-based migration corresponding to a previously run database initializer. |
Applies to
Entity Framework