11 2012 档案
摘要:用Linq加载treeview时代码如下: private void BindRootTree() { this.tv_emp.Nodes.Clear(); this.BindTreeView(null, null); } private void BindTreeView(TreeNode tn,DEPARTMENT1 dept) { DataEntityQuery<DEPARTMENT1> query = DataEntityQuery<DEPARTMENT1>.Create(); int parentID = dept != null ? dept.id : 0;
阅读全文