ToolingFacade.ScriptUpdate Method (String, String, Boolean)

 

Generates a SQL script to migrate between two migrations.

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

public string ScriptUpdate(
	string sourceMigration,
	string targetMigration,
	bool force
)

Parameters

sourceMigration
Type: System.String

The migration to update from. If null is supplied, a script to update the current database will be produced.

targetMigration
Type: System.String

The migration to update to. If null is supplied, a script to update to the latest migration will be produced.

force
Type: System.Boolean

Value indicating if data loss during automatic migration is acceptable.

Return Value

Type: System.String

The generated SQL script.