using CommunityToolkit.Mvvm.ComponentModel; using Dapper; using Dapper.Contrib.Extensions; using Szmedi.Toolkit.Revit.Approval; namespace Szmedi.RevitToolkit.Approval.Models { /// /// 轨道交通分类关系模型 /// [Table("afca_metro_relations")] public class MetroNode { [Key] public int Index { get; set; } /// /// 父节点 /// public MetroNode Parent { get; set; } /// /// 父节点名称 /// public string ParentName { get; set; } /// /// 类别名 /// public string CategoryName { get; set; } /// /// IFC实体 /// public string IFCEntity { get; set; } /// /// 分类编码 /// public string Code { get; set; } /// /// 索引表名称 /// public string ParamTableIndex { get; set; } /// /// 子节点 /// public List Children { get; set; } /// /// 索引的属性集合 /// public List Properties { get; set; } public override string ToString() { return $"父节点:{ParentName}-当前节点:{CategoryName}-参数表:{ParamTableIndex}"; } } }