一个MVC的问题,我用了一个ascx页面,引用model 里面的数据,就出现这个错误,是咋回事啊?

The model item passed into the dictionary is of type 'CarData.OrderCarShareAndUser' but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[CarData.OrderCarShareAndUser]'

写的很明显了,页面需要一个OrderCarShareAndUser的集合,但是你穿过去的是单个OrderCarShareAndUser
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答