Example #1
0
        public static Doc Create(Doc doc, Guid editID, Guid stringID, string value = "")
        {
            var edit = new CreateStringEdit(editID, stringID, value);

            doc = doc.Apply(edit);
            return(doc);
        }
Example #2
0
        public static Doc Create(Doc doc, Guid editID, Guid dictID)
        {
            var edit = new CreateDictEdit(editID, dictID);

            doc = doc.Apply(edit);
            return(doc);
        }
Example #3
0
        public static Doc Create(Doc doc, Guid editID, Guid FormID)
        {
            var edit = new CreateFormEdit(editID, FormID);

            doc = doc.Apply(edit);
            return(doc);
        }
Example #4
0
        public static Doc Remove(Doc doc, Guid editID, string key, DictItem before)
        {
            var id   = before.ID;
            var edit = new RemoveDictFieldEdit(editID, before, key);

            doc = doc.Apply(edit);
            return(doc);
        }
Example #5
0
        public static Doc Set(Doc doc, Guid editID, DictItem before, string key, Guid valueID)
        {
            var id   = before.ID;
            var edit = new SetDictFieldEdit(editID, before, key, valueID);

            doc = doc.Apply(edit);
            return(doc);
        }
Example #6
0
        public static Doc Change(Doc doc, Guid editID, StringItem before, string value)
        {
            var id    = before.ID;
            var after = new StringItem(id, value);
            var edit  = new ChangeStringEdit(editID, before, after);

            doc = doc.Apply(edit);
            return(doc);
        }