MigrationScaffolder Class
Collapse the table of content
Expand the table of content

MigrationScaffolder Class

Entity Framework 5.0

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


Namespace:  System.Data.Entity.Migrations.Design
Assembly:  EntityFramework (in EntityFramework.dll)

public class MigrationScaffolder

The MigrationScaffolder type exposes the following members.

Public methodMigrationScaffolderInitializes a new instance of the MigrationScaffolder class.

Public propertyNamespace 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.

Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodScaffold(String) Scaffolds a code based migration to apply any pending model changes to the database.
Public methodScaffold(String, Boolean)Scaffolds a code based migration to apply any pending model changes to the database.
Public methodScaffoldInitialCreate Scaffolds the initial code-based migration corresponding to a previously run database initializer.
Public methodToString (Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft