ToolingFacade.Update Method (String, Boolean)

 

Updates the database to the specified migration.

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

public void Update(
	string targetMigration,
	bool force
)

Parameters

targetMigration
Type: System.String

The Id of the migration to migrate to. If null is supplied, the database will be updated to the latest migration.

force
Type: System.Boolean

Value indicating if data loss during automatic migration is acceptable.