Recently I've been trying out the new .Net 4.0 toolchains for Visual Studio 2010, and the new Nuget Package Manager. I've played with MVC3 a fair bit, and tried out the MVCScaffolding package, and was pretty impressed. To close the loop, I decided to check out Entity Framework 4 to really get into the rapid prototyping funness.
Alas, I am not able to create a simple model with EF4, and successfully generate a usable scaffold from that structure.
The structure I have scoped down to at this point is an entity "Cake", with a primary key Id and a string FrostingColor. After generating the sql and deploying it to the database, I generated the scaffold with MVCScaffolding.
Then, I compile and run, and attempt to visit my site/Cakes/Index page. I receive the server error:
The type 'MvcApplication1.Models.Cake' is not a supported entity type.
I've spent a while googling for others with this problem, but can't make heads or tails of it. Has anyone tried this, or happens to know what might be causing it?
Thanks!