MigrationScaffolder MigrationScaffolder MigrationScaffolder Class

Definition

Scaffolds code-based migrations to apply pending model changes to the database.

public class MigrationScaffolder
type MigrationScaffolder = class
Public Class MigrationScaffolder
Inheritance
MigrationScaffolderMigrationScaffolderMigrationScaffolder

Constructors

MigrationScaffolder(DbMigrationsConfiguration) MigrationScaffolder(DbMigrationsConfiguration) MigrationScaffolder(DbMigrationsConfiguration)

Initializes a new instance of the MigrationScaffolder class.

Properties

Namespace Namespace 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) Scaffold(String) Scaffold(String)

Scaffolds a code based migration to apply any pending model changes to the database.

Scaffold(String, Boolean) Scaffold(String, Boolean) Scaffold(String, Boolean)

Scaffolds a code based migration to apply any pending model changes to the database.

ScaffoldInitialCreate() ScaffoldInitialCreate() ScaffoldInitialCreate()

Scaffolds the initial code-based migration corresponding to a previously run database initializer.

Applies to