如何将自引用表绑定到WPF TreeView

时间:2013-01-04 17:33:09

标签: c# wpf entity-framework data-binding treeview

从edmx绑定自引用表的最佳解决方案是什么:

enter image description here

指向WPF TreeView控件,如下所示:

enter image description here

1 个答案:

答案 0 :(得分:1)

Josh Smith有一个很棒的article on Code Project,它将指导您如何制作TreeView可以绑定的视图模型。你不会因为使用EF而逃脱,因为EF不会进行递归。