Hi William – we are moving all forum questions to stackoverflow – tag questions with MDriven!https://stackoverflow.com/search?q=MDriven
To your question: This is how the automated evolve of MDrivenServer does it:
` IDBEvolutor evolutor = pmapp.GetEvolutor(rmes);
evolutor.CalculateScript();
string[] scripttolog = evolutor.GenerateDbScript();
string[] mappingtolog = evolutor.GenerateMappingScript();
string[] warningstolog = evolutor.GenerateWarnings();
string[] errorstolog = evolutor.GenerateErrors();
if (errorstolog.Length > 0)
AddServerDBLog(zv, “Errors”, errorstolog);
if (warningstolog.Length > 0)
AddServerDBLog(zv, “Warnings”, warningstolog);
if (scripttolog.Length > 0)
AddServerDBLog(zv, “Script”, scripttolog);
// Just annoying AddServerDBLog(zv, “MappingScript”, mappingtolog);
evolutor.ExecuteScript();
string[] ExecutedStatements = evolutor.GenerateExecutedStatements();
AddServerDBLog(zv, “ExecutedStatements”, ExecutedStatements);
zv.ServerHasUpdatedDatabase();
zv.ServerDBCreateAndEvolveLog += “Evolve success”;