internal SimpleTransactionLogger(XDocument m, SimpleTransaction t)
        {
            model = m;
            tx = t;
            undoCommands = new List<XmlModelCommand>();
            txCommands = new List<XmlModelCommand>();

            nodesAdded = new Dictionary<XObject, object>();
            var provider = tx.Provider as VanillaXmlModelProvider;
            if ((provider == null || provider.CommandFactory == null))
            {
                cmdFactory = new CommandFactory();
            }
            else
            {
                cmdFactory = provider.CommandFactory;
            }
        }
 /// <summary>
 ///     This API supports the Entity Framework infrastructure and is not intended to be used directly from your code.
 /// </summary>
 public VanillaXmlModelProvider()
 {
     _models = new Dictionary<Uri, SimpleXmlModel>();
     _txmanager = new SimpleTransactionManager();
     _factory = new CommandFactory();
 }