I have setup a new ASP.NET MVC project and followed the SimpleRepository tutorial by:
- Adding the reference to SubSonic.Core (v3)
- Created a simple POCO - PhoneType
- Created the controller and injected the SimpleRepository
- Created the "Create" view
When I ran the sample, I get the following error:
The model item passed into the dictionary is of type 'SubSonic.Linq.Structure.Query`1[SubSonicMVC.Models.PhoneType]' but this dictionary requires a model item of type 'SubSonicMVC.Models.PhoneType'.
I compared my project to the Example that comes with SubSonic3. The only thing I did not change is the view page inheritence:
Inherits="System.Web.Mvc.ViewPage<SubSonicMVC.Models.PhoneType>"
What am I missing??