October 15 2013

ASP.net Model Class and Data context class do not list the Movie selections

Tagged Under :

asp.net
I’m working through ASP.NET MVC4 tutorial and the section “Accessing Your Model’s Data from a Controller”. I’ve attempted to add the MoviesController but the combo boxes for Model Class and Data context class do not list the Movie selections that they specified.



It is because I not yet rebuild the application and the tutorial also didn’t mention this.

How to do it? Go to top menu BUILD -> Build Solution or use shortcut key “Ctrl+Shift+B” to rebuild application.

After completed build the application, it will show message like below at Package Manager Console.
========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
Now you can add the controller with Movie model.

Make a Comment

You must be logged in to post a comment.


Warning: Invalid argument supplied for foreach() in /www/wwwroot/chevronscode.com/public_html/wp-includes/script-loader.php on line 2678