public void ShowChangeScripts(string databaseName, bool changesOnly)
 {
     if (changesOnly)
     {
         ScriptModelDatabase = FillScriptModel(databaseName);
     }
     else
     {
         ScriptModelDatabase = FillScriptModelCreateAll();
     }
 }
Example #2
0
            public string GetHeader(ArchAngel.Interfaces.Scripting.DatabaseChanges.IDatabase database)
            {
                object[] parms = new object[] { database };
                string   body  = (string)HeaderMethod.Invoke(null, parms);

                if (body.StartsWith("          "))
                {
                    body = body.Substring(10);
                }

                body = Slyce.Common.Scripter.RemoveDebugSymbols(body);
                return(body);
            }
Example #3
0
 public void ShowChangeScripts(string databaseName, bool changesOnly)
 {
     if (changesOnly)
         ScriptModelDatabase = FillScriptModel(databaseName);
     else
         ScriptModelDatabase = FillScriptModelCreateAll();
 }
        private ArchAngel.Interfaces.Scripting.DatabaseChanges.IChangedTable GetChangedTable(ArchAngel.Interfaces.Scripting.DatabaseChanges.IDatabase database, ITable oldTable)
        {
            ArchAngel.Interfaces.Scripting.DatabaseChanges.IChangedTable table = database.ChangedTables.SingleOrDefault(t => t.Name == oldTable.Name && t.Schema == oldTable.Schema);

            if (table == null)
            {
                table = new ArchAngel.Interfaces.Scripting.DatabaseChanges.IChangedTable(database.Name)
                {
                    Name   = oldTable.Name,
                    Schema = oldTable.Schema
                };
                database.ChangedTables.Add(table);
            }
            return(table);
        }