Export (0) Print
Expand All

MigratorScriptingDecorator.ScriptUpdate Method

Entity Framework 5.0

Updates the database to the target migration.

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

public string ScriptUpdate(
	string sourceMigration,
	string targetMigration
)

Parameters

sourceMigration
Type: System.String

The source migration.

targetMigration
Type: System.String

The migration to upgrade/downgrade to.

Return Value

Type: System.String
The generated SQL script.
Show:
© 2014 Microsoft