예제 #1
0
        public void Save(string key, string value)
        {
            UserModelDifferenceObject userModelDifferenceObject = new QueryUserModelDifferenceObject(_session).GetActiveModelDifference(_applicationName);
            Dictionary     dictionary     = userModelDifferenceObject.GetCombinedModel();
            DictionaryNode dictionaryNode = new DictionaryXmlReader().ReadFromString(value);

            var dictionary1 = new Dictionary(new DictionaryNode(ApplicationNodeWrapper.NodeName), userModelDifferenceObject.PersistentApplication.Model.Schema);

            dictionary1.RootNode.AddChildNode("Views").AddChildNode(dictionaryNode);
            dictionary.CombineWith(dictionary1);
            userModelDifferenceObject.Model = dictionary.GetDiffs();
            ObjectSpace.FindObjectSpace(userModelDifferenceObject).CommitChanges();
        }