1
我目前在VS 2012中使用MVC4與MySql構建網站。我有問題,當我試圖顯示我的數據和得到這個錯誤:MVC4與MySql
The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[System.String]', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[MyMvc4SalesStatistics.Models.users_internal_group_membership]'.
截圖:
難道你不明白什麼部分消息的? – SLaks
嘿,請向我們展示您返回View()的Controller代碼。看起來你正在傳遞錯誤的模型類型。 – KingCronus