ITreeEntityTKey, TSelf Interface

表示包含指定类型 Id 主键一个树形结构的实体。 主键数据类型 TKey 通常为 intlong 等等, 若要用 string 类型作为主键,请使用 ITreeEntityTSelf 接口。

Definition

Namespace: QuickAdmin.EntityBase
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 1.0.122
C#
public interface ITreeEntity<TKey, TSelf> : ITreeEntityBase<TSelf>, 
	ITreeEntityBase, IEntity
where TKey : struct, new()
Implements
IEntity, ITreeEntityBase, ITreeEntityBaseTSelf

Type Parameters

TKey
Id 主键的数据类型。
TSelf
实体类型自己。

Properties

Childs 获取/设置子节点列表。
(Inherited from ITreeEntityBaseTSelf)
Id 获取/设置 Id 主键。
Parent 获取/设置父节点。
(Inherited from ITreeEntityBaseTSelf)
ParentId 获取/设置父 Id。

Methods

GetBottomMostLastChild 获取最底层的最后一个子节点。
(Inherited from ITreeEntityBaseTSelf)
GetTopMostParent 获取最顶层父节点。
(Inherited from ITreeEntityBaseTSelf)
TrimStringValues 移除所有字符串属性(类型为 string 的属性)的值的前导和尾随空白字符。
(Inherited from IEntity)

See Also