示例#1
0
 internal static void Record(Root root, Item itm, Property prop, string newValue)
 {
     itm.ModelDelta++;
     if (prop.IsCovert)
     {
         prop.Value.SetString(itm, newValue);
     }
     else
     {
         var oldValue = prop.Value.GetString(itm);
         var name     = $"{itm.GetChangeLogId()}    {prop.GetNameId()}:  old<{oldValue}>  new<{newValue}>";
         if (prop.Value.SetString(itm, newValue))
         {
             new ItemUpdated(root.Get <ChangeManager>().ChangeSet, itm, prop, oldValue, newValue, name);
         }
     }
 }
示例#2
0
        public override (string, string) GetKindNameId(Root root)
        {
            var name = Property.GetNameId(root);

            return(null, Property.HasParentName ? Property.GetParentName(root, Item) : name);
        }