Complex model binding to a list

后端 未结 1 1780
执念已碎
执念已碎 2020-12-01 19:03

I have been trying out the NameValueDeserializer from MVCContrib, which will take a IList as a parameter to a controller and bind a form and its elements to it, but I was ju

1条回答
  •  被撕碎了的回忆
    2020-12-01 19:27

    Yes it is, I wrote a detailed blog post about it here. It's really easy for simple types. For complex types, you'd need to do something like:

    
    
    
    
    
    
    
    
    
    
    
    

    0 讨论(0)
提交回复
热议问题