【发布时间】:2013-12-10 05:40:17
【问题描述】:
我有一个这样的 xml:
<Root>
<MortgaginContracts>
<ContractInfo>
<PledgeType>3</PledgeType>
<ContractType>0</ContractType>
<ContractNum>123</ContractNum>
</ContractInfo>
<ContractInfo>
<PledgeType>4</PledgeType>
<ContractType>3</ContractType>
<ContractNum>125</ContractNum>
</ContractInfo>
<ContractInfo>
<PledgeType>3</PledgeType>
<ContractType>0</ContractType>
<ContractNum>123</ContractNum>
</ContractInfo>
</MorgaginContracts>
</Root>
没有可重复节点的标识符。如何在 MVC 项目中为“ContractInfo”创建具有 CRUD 操作的存储库?而 ContractInfo 可能有您的可重复子节点。
有什么想法吗? xmlnode分层多怎么解决?
【问题讨论】:
标签: asp.net-mvc linq-to-xml crud