Its my first time to work on MVC framework and I am creating a shopping cart application.
I have three tables like product, order, orderDetail. First I configured only product and create a view using product control. when I run this I got an error like
The model item passed into the dictionary is of type ‘System.Data.Objects.ObjectSet`1
[MvcShoppingCart.Models.Product]’, but this dictionary requires a model item of
type ‘MvcShoppingCart.Models.Product’. “
If anyone have the solution please reply
This exception tells you that you pass an ObjectSet (from Entity Framework?) to a view as model where the view expects a Product instance.