Friday, August 20, 2010

Great ASP.NET MVC 2 (+ EF 4.0) sample

Recently I``ve found a great sample project on the codeplex that shows how to build web applications with ASP.NET MVC 2. I speak about MVC Music Store.



First of all, this project was interesting for me because it demonstrates how to organize data access via Entity Framework 4. There are also a lot of nice stuff in this project, including:

  • Templating, Data Annotations, Validation;
  • View models;
  • Client-side validation, jQuery and AJAX helper methods;

Project includes 80-page PDF walktrough tutorial that describes in details how to create sample application starting from clicking File -> New Project.

You need Visual Studio 2010 and ASP.NET 4.0 to run samples.

ASP.NET MVC 2 is the latest official release at the current moment (ASP.NET MVC 3 is still under development). So, this tutorial is very actual now. I recommend it to everyone who are not familiar with ASP.NET MVC technology. Moreover, this tutorial might be useful if you would like to understand how to use Entity Framework 4 within your ASP.NET MVC website.