Ok, well, for whatever reason, I wasn’t able to get the old project working with MvcScaffolding after updating to the RTM of MVC 3. I had even run the upgrade tool. We are and were dealing with beta software, sometimes that’s what happens. Thankfully we weren’t too far along. So, what I’ve done is created a new project and simply added all our model classes to the new project.
I then reinstalled our packages from NuGet:
Now we will do some scaffolding.
Change the default route to point to our Recipe Controller:
And wa-la, we’ve got a running application.
Since we never defined a connection string for the application, it created a new database in our Sql Server Express instance with the fully qualified name of the context class.
So you can see that outside of create our model classes, everything else can be automated and done very quickly. Understanding what is actually going on is important, so next we’ll look in more detail at the files that were created.
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.