/// <summary> /// Reconciles the databases. /// </summary> /// <returns>Result of each database reconciliation</returns> public IEnumerable <SqlDeployResult> ReconcileDatabases() { var updater = new SqlDeployUpdater(this.Settings.Databases); updater.UpdateProgress += (sender, e) => { if (this.UpdateProgress != null) { this.UpdateProgress(this, e); } }; return(updater.Reconcile()); }
/// <summary> /// Reconciles the database. /// </summary> /// <param name="name">The name.</param> /// <returns>Result of database reconciliation.</returns> public SqlDeployResult ReconcileDatabase(string name) { var databaseToUpdate = this._settings.Databases.Single(d => d.DatabaseName.Equals(name, StringComparison.OrdinalIgnoreCase)); var updater = new SqlDeployUpdater(databaseToUpdate); updater.UpdateProgress += (sender, e) => { if (this.UpdateProgress != null) { this.UpdateProgress(this, e); } }; return(updater.Reconcile().Single()); }
/// <summary> /// Reconciles the databases. /// </summary> /// <returns>Result of each database reconciliation</returns> public IEnumerable<SqlDeployResult> ReconcileDatabases() { var updater = new SqlDeployUpdater(this.Settings.Databases); updater.UpdateProgress += (sender, e) => { if (this.UpdateProgress != null) { this.UpdateProgress(this, e); } }; return updater.Reconcile(); }
/// <summary> /// Reconciles the database. /// </summary> /// <param name="name">The name.</param> /// <returns>Result of database reconciliation.</returns> public SqlDeployResult ReconcileDatabase(string name) { var databaseToUpdate = this._settings.Databases.Single(d => d.DatabaseName.Equals(name, StringComparison.OrdinalIgnoreCase)); var updater = new SqlDeployUpdater(databaseToUpdate); updater.UpdateProgress += (sender, e) => { if (this.UpdateProgress != null) { this.UpdateProgress(this, e); } }; return updater.Reconcile().Single(); }