예제 #1
0
 /// <summary>
 ///     创建文档路径
 /// </summary>
 /// <param name="name">名称</param>
 /// <param name="isLeaf">是否是叶子节点,叶子节点,表示具体的文档</param>
 /// <param name="extension">扩展名</param>
 /// <param name="documentId">叶子节点</param>
 /// <param name="parentId">父节点</param>
 /// <param name="pathSource">路径类型</param>
 /// <returns>文档路径</returns>
 public static DocumentPath CreateDocumentPath(string name, bool isLeaf, string extension,
     Guid? documentId, int? parentId, PathSource pathSource)
 {
     return new DocumentPath
     {
         Name = name,
         IsLeaf = isLeaf,
         Extension = extension,
         DocumentGuid = documentId,
         ParentId = parentId,
         PathSource = pathSource,
     };
 }
예제 #2
0
 /// <summary>
 ///     修改文档路径
 /// </summary>
 /// <param name="name">名称</param>
 /// <param name="isLeaf">是否是叶子节点,叶子节点,表示具体的文档</param>
 /// <param name="extension">扩展名</param>
 /// <param name="documentId">叶子节点</param>
 /// <param name="parentId">父节点</param>
 /// <param name="pathSource">路径类型</param>
 /// <returns>文档路径</returns>
 public void Update(string name, bool isLeaf, string extension,
     Guid? documentId, int? parentId, PathSource pathSource)
 {
     Name = name;
     IsLeaf = isLeaf;
     Extension = extension;
     DocumentGuid = documentId;
     ParentId = parentId;
     PathSource = pathSource;
 }