-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
103 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
namespace XCode; | ||
|
||
namespace XCode | ||
/// <summary>实体树接口</summary> | ||
public interface IEntityTree : IEntity | ||
{ | ||
/// <summary>实体树接口</summary> | ||
public interface IEntityTree : IEntity | ||
{ | ||
#region 属性 | ||
/// <summary>父实体</summary> | ||
IEntity Parent { get; } | ||
#region 属性 | ||
/// <summary>父实体</summary> | ||
IEntity? Parent { get; } | ||
|
||
/// <summary>子实体集合</summary> | ||
IList<IEntity> Childs { get; } | ||
/// <summary>子实体集合</summary> | ||
IList<IEntity> Childs { get; } | ||
|
||
/// <summary>子孙实体集合。以深度层次树结构输出</summary> | ||
IList<IEntity> AllChilds { get; } | ||
/// <summary>子孙实体集合。以深度层次树结构输出</summary> | ||
IList<IEntity> AllChilds { get; } | ||
|
||
/// <summary>父亲实体集合。以深度层次树结构输出</summary> | ||
IList<IEntity> AllParents { get; } | ||
/// <summary>父亲实体集合。以深度层次树结构输出</summary> | ||
IList<IEntity> AllParents { get; } | ||
|
||
/// <summary>深度</summary> | ||
Int32 Deepth { get; } | ||
/// <summary>深度</summary> | ||
Int32 Deepth { get; } | ||
|
||
/// <summary>树形节点名,根据深度带全角空格前缀</summary> | ||
String TreeNodeText { get; } | ||
/// <summary>树形节点名,根据深度带全角空格前缀</summary> | ||
String TreeNodeText { get; } | ||
|
||
/// <summary>获取完整树,包含根节点,排除指定分支。多用于树节点父级选择</summary> | ||
/// <param name="exclude"></param> | ||
/// <returns></returns> | ||
IList<IEntity> FindAllChildsExcept(IEntityTree exclude); | ||
#endregion | ||
} | ||
/// <summary>获取完整树,包含根节点,排除指定分支。多用于树节点父级选择</summary> | ||
/// <param name="exclude"></param> | ||
/// <returns></returns> | ||
IList<IEntity> FindAllChildsExcept(IEntityTree exclude); | ||
#endregion | ||
} |