MigratorScriptingDecorator.ScriptUpdate Method (String, String)

 

Produces a script to update the database.

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

public string ScriptUpdate(
	string sourceMigration,
	string targetMigration
)

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.

Return Value

Type: System.String

The generated SQL script.