从 Silverlight 到 MVC CslaModelBinding 子集合
背景:
不久前,我们使用 csla 框架为 silverlight 开发了一个业务应用程序。现在,我们希望为由于某种原因无法使用 Silverlight 的人们创建一种 MVC 替代方案。
问题:
现在的问题是我们希望为 MVC 应用程序重用现有的业务库。我们希望将父对象及其所有子对象保存为批处理,但 cslamodelbinder 不绑定子对象。有没有办法绑定这些子集合?
如果没有,我们必须像父母一样单独保存每个孩子,最简单的方法是什么? (记住所有子对象只有子数据门户方法)
我尝试浏览论坛,只找到了关于这个问题的一小部分帖子,而且这些帖子有点旧,想知道是否有人发现从那时起有一个好的解决方案吗?
非常感谢!
Background:
A while ago we developed a business application for silverlight using the csla framework. Now we wish to create an MVC alternative for people who are unable to use Silverlight for one reason or another.
The problem:
Now the problem is that we wish to re-use the existing business library for the MVC application. We wish to save a parent and all its children as a batch but the cslamodelbinder does not bind the child objects. Is there a way of binding these child collections?
If not, and we have to save each child seperate as though it were a parent what would be the easiest way? (Bearing in mind all the child objects only have Child data portal methods)
I've tried looking around forums and have only managed to find a very small handfull of posts regarding this problem and these were a little old, was wondering if anyone has found a good solution since then?
Thanks a bunch!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论