ITreeEntityWithNamePathTKey, TSelf Interface

表示包含指定类型 Id 主键、名称 属性以及 名称路径 属性的树形结构的实体。 主键数据类型 TKey 通常为 intlong 等等, 若要用 string 类型作为主键,请使用 ITreeEntityWithNamePathTSelf 接口。

Definition

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

Type Parameters

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

Properties

Childs 获取/设置子节点列表。
(Inherited from ITreeEntityBaseTSelf)
Id 获取/设置 Id 主键。
(Inherited from ITreeEntityTKey, TSelf)
Name 获取/设置名称。
(Inherited from IEntityWithName)
NamePath 获取/设置名称路径。此属性通常不映射到表字段。
(Inherited from ITreeEntityWithNamePath)
Parent 获取/设置父节点。
(Inherited from ITreeEntityBaseTSelf)
ParentId 获取/设置父 Id。
(Inherited from ITreeEntityTKey, TSelf)

Methods

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

See Also