United Kingdom +44 (0) 1424 863 450   hello@simego.com

Output Change Set Data


19 April 2016

Outputting the changes between sync’s has been requested by several clients recently.  There’s not an easy way to do it other than enumerate the change set. We are hoping we can fix this so this is a request for some feedback!

 

Currently we have added a Method called GetChangeSets() on the compareResult this returns an object with three DataTableStore objects Added,Updated and Deleted.

 

There is also a Helper Method to combine them into a DataSet with 3 tables, where you can then simply write the DataSet to a File.

 

i.e.

 

public override void AfterCompare(ProjectAutomationCompareResult compareResult)
{
        if(compareResult.HasChanges)
        {
            compareResult.GetChangeSets().GetAllChangesDataSet().WriteXml("AllChanges.xml", XmlWriteMode.WriteSchema);                
        }
}

 

image

 

One problem with the .NET DataSet object is it likes to munch on system memory so if the change set is large it’s going to eat away at a lot of memory.

 

So I guess we’re asking given a change set what do you want to do with it?

 

3xCSV files? 3xXML Files?

 

How would you see this working?