0
什么是创建/使用下面的伪视图更新数据的最佳做法:Asp.net MVC父/子创建/更新查看
parent name field
parent description field
table with child data:
existing fields
fields for child[1] with existing data
fields for child[2] with existing data
empty field[1] for a new child
[add new child button (just creates the fields. no server contact)]
[save everything button]
是否有子字段命名约定的最佳实践,如何在控制器中加载一些模型,在现有的子模型中检查更新的数据,所以你不只是清除所有的孩子,然后再次添加它们等。让我们假设我正在使用LINQ to sql来为我的楷模。它似乎并不像你可以自动绑定值(不是孩子的),我敢肯定,有一些hacky的方式来完成工作。但是最好的方法是什么?