예제 #1
0
 /// <summary>
 /// Deploys a database.
 /// </summary>
 public void DeployDatabase(DatabaseDeploymentStructure structure)
 {
     try {
         DatabaseDeployer ds = new DatabaseDeployer();
         ds.DeployDatabase(structure);
     }
     catch (DeployCancelException ex) {
         // Deployment has been cancelled
         EventManager.OnNotificationMessage("*** Deployment stopped! " + ex.Message);
     }
 }
예제 #2
0
 /// <summary>
 /// Scans databases for differences.
 /// </summary>
 public DatabaseComparison CompareDatabases(DatabasePair databases)
 {
     try {
         DatabaseDeployer ds = new DatabaseDeployer();
         return ds.CompareDatabases(databases);
     }
     catch (DeployCancelException ex) {
         // Deployment has been cancelled
         EventManager.OnNotificationMessage("*** Verification stopped! " + ex.Message);
     }
     return null;
 }
예제 #3
0
 /// <summary>
 /// Scans a database for objects to deploy.
 /// </summary>
 public DatabaseDeploymentStructure ScanDatabase(DeploymentProject project, DatabasePair databases)
 {
     DatabaseDeployer ds = new DatabaseDeployer();
     return ds.ScanDatabase(project, databases);
 }