Skip to main content

Posts

Showing posts from June, 2014

Migrating Classic ASP to MVC 5 using Scaffolding

This week I started working on a new website application which will update a previously setup project in Classic ASP. The new application will be setup as Database First MVC Model as the current website already has lots of user demographics and trainings information. I have read many documentation on MVC but haven’t gone about implementing MVC on a large scale project so this will be solution which will let me test out all possibilities of MVC. The application is using the default MVC project with Bootstrap 3 and updates applied from nuget Manager. I will also be using the github as a repository so code does not gets lost. One of the things I right away ran into when I setup the scaffolding is the “default” database values not being populated, it’s the fault in the database setup but the issue is even noticeable in ASPNetRoles table. After the auto generated controller was added, I have added the below line before the “SaveChanges()” is called to resolve a uncaught exception when creat