/// <summary>
 /// 创建一个子节点
 /// </summary>
 /// <param name="rootId"></param>
 /// <param name="parentId"></param>
 /// <param name="name"></param>
 /// <returns></returns>
 public RES CreateChildNode(string rootId, string parentId, string name)
 {
     if (!string.IsNullOrWhiteSpace(name) && GUID.IsGuid(rootId) && GUID.IsGuid(parentId))
     {
         var inst = new YunRelation {
             CreateTime = DateTime.Now, Name = name, RootID = Guid.Parse(rootId), ParentID = Guid.Parse(parentId), UpdateTime = DateTime.Now
         };
         var res = inst.Save();
         return(res);
     }
     return(RES.FAIL());
 }
 /// <summary>
 /// 创建一个根节点
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public RES CreateRootNode(string name)
 {
     if (!string.IsNullOrWhiteSpace(name))
     {
         var inst = new YunRelation {
             CreateTime = DateTime.Now, Name = name, RootID = null, ParentID = null, UpdateTime = DateTime.Now
         };
         var res = inst.Save();
         return(res);
     }
     return(RES.FAIL());
 }