树形结构模型
public class City : TopBasePoco,ITreeData<City> { [Display(Name = "名称")] [Required(ErrorMessage = "名称是必填项")] public string Name { get; set; } public List<City> Children { get; set; } [Display(Name = "父级")] public City Parent { get; set; } [Display(Name = "父级")] public Guid? ParentId { get; set; } [NotMapped] public string Sheng { get; set; } [NotMapped] public string Shi { get; set; } [NotMapped] public string Qu { get; set; } }