Introduction to ASP.Net MVC for Alt.Net DC – Presentation Materials
// September 24th, 2008 // MVC, Presentations
I just got back from my ASP.Net MVC Presentation for tonight’s DC Alt.Net meeting and I had a great time. I hope everyone got a good feel for what it takes to develop an application using the MVC framework. Please don’t hesitate to contact me if you have any questions. Also I owe a big thanks to Matthew Podwysocki for inviting me to speak. Thanks Matt, I really enjoyed the opportunity.
I promised that I would post the project that we created tonight (a basic blog engine), which you can now find linked below. There are three projects in the solution:
- MvcTutorials.Blog.Domain
This project has the Comment & Post entities, as well as the repositories used to populate them. - MvcTutorials.Blog.Domain.Bootstrap
This project adds random data to the blog database for testing. - MvcTutorials.Blog.ReferenceWebsite
This is the MVC website I created prior to the meeting to decide what I was going to present and how long it would take to do it. This is where you’ll find the code we wrote tonight.
If you want to run the project, make sure you have SQL Server Express installed and create a database named “MvcTutorial-Blog”. Afterward you can run the “MvcTutorials.Blog.Domain.Bootstrap” project to insert test data and run the website project.
Be sure to let me know if there are any questions or comments about tonight’s presentation or this post’s code!
Presentation Materials:
MvcTutorial-Blog.zip (307.06 kb)




Thanks again for a great presentation.
Roberto @ Excella
Just a quick comment so others don’t stumble as I did.
You need the MVC stuff from codeplex (I installed preview 5) or perhaps the SP1 installed before you can start playing otherwise Visual Studio will tell you that the MVC reference website is not a recognized project type
Thanks for the great sample
Hi Soren,
You are correct; I should have mentioned that above. You will need both Preview 5 of the MVC framework AND SP1 installed. Thanks for the comment.
It seems that Paging is not working properly, actually there are 5 pages with the blog contents, but you can navigate page 6,7,8………………….
Nice thank you i want to see the repository implementation. So i will download and take a look at it
Hi Can you explain the advantages of MVC over layer oriented designed applications?
@Kalyan: By “layer oriented designed applications” do you mean an n-Tier architecture? If so, I think its important to point out that MVC is actually a design pattern primarily for your UI. If not, would you mind clarifying?
Typically one of the tiers in your n-Tier architecture is a presentation layer and below that you have an application (service) layer, right? MVC is a pattern that defines when, where, and how you should separate those two layers and, actually, how to further break-up the presentation layer itself.
Further down the line you have your domain (data) and infrastructure layers, but those are unaffected by the choice to use MVC and have other patterns (such as SOA) that you can use to help design those layers.
I know you asked for an explanation of some advantages, but I’m trying to clarify that MVC is in fact a METHOD of layering an application, not an alternative to it. If you’d like more information, please don’t hesitate to ask.