摘要:
先上实体类1publicclassParentItem2{3publicintID{get;set;}4publicstringName{get;set;}5}6publicclassSubItem7{8publicintParentID{get;set;}9publicintID{get;set;}10publicstringName{get;set;}11}12publicclassTestViewModel13{14publicList<ParentItem>Parent{get;set;}15publicList<SubItem>Sub{get;set;}16} 阅读全文