阅读背景:

使用Html的MVC嵌套编辑器模板。BeginCollectionItem扩展总是返回一个值设置为“0”或“null”的对象

来源:互联网 

I am trying to return a model which contains one or more sub-models which, in turn, can also contain a sub-model. The first layer returns succesfully, however, when I want to return the 3rd layer of sub-model, I get a 'default' instance of that model without the actually filled in variables. So, the model returned contains a sub-model and the sub-model contains another sub-model, but that last sub-model's values are set to '0' and 'null'.I am trying to return a model which contains on




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

分享到: