MigrationScaffolder.Scaffold Method

Definition

Overloads

Scaffold(String)

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

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.

public virtual System.Data.Entity.Migrations.Design.ScaffoldedMigration Scaffold (string migrationName);
abstract member Scaffold : string -> System.Data.Entity.Migrations.Design.ScaffoldedMigration
override this.Scaffold : string -> System.Data.Entity.Migrations.Design.ScaffoldedMigration
Public Overridable Function Scaffold (migrationName As String) As ScaffoldedMigration

Parameters

migrationName
String

The name to use for the scaffolded migration.

Returns

The scaffolded migration.

Applies to

Scaffold(String, Boolean)

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

public virtual System.Data.Entity.Migrations.Design.ScaffoldedMigration Scaffold (string migrationName, bool ignoreChanges);
abstract member Scaffold : string * bool -> System.Data.Entity.Migrations.Design.ScaffoldedMigration
override this.Scaffold : string * bool -> System.Data.Entity.Migrations.Design.ScaffoldedMigration
Public Overridable Function Scaffold (migrationName As String, ignoreChanges As Boolean) As ScaffoldedMigration

Parameters

migrationName
String

The name to use for the scaffolded migration.

ignoreChanges
Boolean

Whether or not to include model changes.

Returns

The scaffolded migration.

Applies to