Asp.net mvc 2 .net 4.0 error when View model type is Tuple with more than 4 items

馋奶兔 提交于 2019-12-05 21:15:27
KWHJ

Please review: Get objects out of List< Tuple < object1, object2 > > and store them in Strongly Typed ViewModel

Get object out of List< Tuple < object1, object2 > > and store in ViewModel

By doing so, you could set up a join with 5 related tables. You will (probability is bordering on certainty) end up with tuples containing 5 objects (reflecting the tables). Iterate thru the listoftuples and get the items in each tuple separated in 5 lists of objects. Call them as I suggested on 5 separate partial views (if you familiar with ASP MVC 2). If not, I do believe you will manage, anyway. In about a short while, I will hopefully try it out myself. I will, for sure, at least set up a join with three tables, possibly four. However, I can image that there will be circumstances somebody will have to join at least five ... especially, when the database is highly normalized. Succes!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!