C# Class Net.Sf.Dbdeploy.Controller

Primary controller for executing DbDeploy.
Show file Open project: brunomlopes/dbdeploy.net Class Usage Examples

Public Methods

Method Description
Controller ( IAvailableChangeScriptsProvider availableChangeScriptsProvider, IAppliedChangesProvider appliedChangesProvider, IChangeScriptApplier doApplier, IChangeScriptApplier undoApplier, bool createChangeLogTable, TextWriter infoTextWriter ) : System.Collections.Generic

Initializes a new instance of the Controller class.

ProcessChangeScripts ( UniqueChange lastChangeToApply, bool forceUpdate = false ) : void

Processes the change scripts.

Private Methods

Method Description
CheckForFailedScripts ( IEnumerable applied ) : void

Checks for failed scripts from previous runs.

IdentifyChangesToApply ( UniqueChange lastChangeToApply, IEnumerable scripts, IList applied ) : IList

Identifies the changes to apply to the database.

Info ( string text ) : void

Writes out the specified info message.

LogStatus ( IEnumerable scripts, IEnumerable applied, IEnumerable toApply ) : void

Logs the status of the scripts.

Method Details

Controller() public method

Initializes a new instance of the Controller class.
public Controller ( IAvailableChangeScriptsProvider availableChangeScriptsProvider, IAppliedChangesProvider appliedChangesProvider, IChangeScriptApplier doApplier, IChangeScriptApplier undoApplier, bool createChangeLogTable, TextWriter infoTextWriter ) : System.Collections.Generic
availableChangeScriptsProvider IAvailableChangeScriptsProvider The available change scripts provider.
appliedChangesProvider IAppliedChangesProvider The applied changes provider.
doApplier IChangeScriptApplier The do applier.
undoApplier IChangeScriptApplier The undo applier.
createChangeLogTable bool Whether the change log table should be created or not.
infoTextWriter System.IO.TextWriter The info text writer.
return System.Collections.Generic

ProcessChangeScripts() public method

Processes the change scripts.
public ProcessChangeScripts ( UniqueChange lastChangeToApply, bool forceUpdate = false ) : void
lastChangeToApply UniqueChange The last change to apply.
forceUpdate bool if set to true any previously failed scripts will be retried.
return void