Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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.

Return to top
Show:
© 2015 Microsoft