阅读背景:

用于更新子表的ASP.NET模型绑定器问题

来源:互联网 

I'm using Linq to SQL within an ASP.NET MVC application. The model consists of a Decisions table with a foreign key link to an Options table (one decision, many options). So the Model allows me to access the Options collection through the Decision.Options property. I want to allow my users to update the Options collection for a Decision in a separate view from updating other Decision properties. What is the best way to pass the Options collection back into the controller in order to update the Decision object? Here's the code:I'm using Linq to SQL within an ASP.NET MVC app




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: