MigrationScaffolder.Scaffold Method

 

Scaffolds a code-based migration.

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

NameDescription
System_CAPS_pubmethodScaffold(String)

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

System_CAPS_pubmethodScaffold(String, Boolean)

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


MigrationScaffolder.Scaffold Method (String)

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

public virtual ScaffoldedMigration Scaffold(
	string migrationName
)

Parameters

migrationName
Type: System.String

The name to use for the scaffolded migration.

Return Value

Type: System.Data.Entity.Migrations.Design.ScaffoldedMigration

The scaffolded migration.


MigrationScaffolder.Scaffold Method (String, Boolean)

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

public virtual ScaffoldedMigration Scaffold(
	string migrationName,
	bool ignoreChanges
)

Parameters

migrationName
Type: System.String

The name to use for the scaffolded migration.

ignoreChanges
Type: System.Boolean

Whether or not to include model changes.

Return Value

Type: System.Data.Entity.Migrations.Design.ScaffoldedMigration

The scaffolded migration.