Sample MVC3 Razor application - asp.net-mvc

Is there a sample application using MVC3 with Razor, something similar to the NerdDinner website where I can review the source code?

Looks like NerdDinner has been updated for MVC3 according to the CodePlex changeset in August `11.

Check out the MVC3 Music Store

Check for MVC Music Store MVC MusicStore, but check for the lastest committed versions, as the last committed version have some problems.
Check for tampaDev site. Tampadev.org mvc3 samples
Codeplex tagged projects Codeplex Asp.net mvc3

Refer the book "Pro ASP.Net MVC3 Framework" By Adam Freeman and Steven Sanderson. They are clearly explaining MVC3 Pattern, its language features and essential tools for MVC3. In addition, it demonstrates step by step development of a sample sport store application with source code.

There's a really good stuff I think in Applied ASP.NET 4 In Context http://www.amazon.com/Applied-ASP-NET-Context-Adam-Freeman/dp/1430234679. There's an example ASP.NET MVC application!
Good luck!

Related

Entity Framework 4.0 - Code only Reference

I am trying to learn EF 4 and its code only features. I tried the following great articles and was able to make a sample application.
http://blogs.taiga.nl/martijn/2009/11/22/entity-framework-4-0-a-fresh-start-with-demo-application/#reply
http://blogs.msdn.com/efdesign/archive/2009/10/12/code-only-further-enhancements.aspx
But I am looking for a good reference library / website on Code only feature. I tried searching MSDN but couldn't find it.
Please help.
Thanks a lot.
There might not be many of them yet. Code only is still in beta-stage and was not released with Visual Studio 2010 RTM. If you plan to use it in a productive environment you should consider using fluent nhibernate or waiting to the final release.
http://blogs.msdn.com/efdesign/archive/2009/06/10/code-only.aspx
http://blogs.msdn.com/efdesign/archive/2009/10/12/code-only-further-enhancements.aspx
Here is a blog article with fully working sample code in ASP.NET MVC 2 in a tutorial form that shows how to use both EF 4.0 Code First and in conjunction with ASP.NET MVC 2. It discusses advanced features of EF 4.0 Code First such as mapping to existing databases and customizing the standard conventions in EF 4 Code First.
The link: http://theminimalistdeveloper.com/how-to-map-to-existing-databases-in-entity-fr

What is the difference between ASP.Net MVC and ASP.Net MVC2?

I've decided to take the suggestion from Robert Harvey on this site and build an application using ASP.Net MVC.
When I went to Bing for a brief overview, I saw there was an MVC2.
What is the difference and should I care?
MVC2 is backwards compatible with MVC, so MVC2 is the one you will be using.
For the new features in version 2, see here:
http://weblogs.asp.net/scottgu/archive/2010/03/11/asp-net-mvc-2-released.aspx
Just use MVC v2 if you have the option. It is an evolved version of MVC 1 with many useful enhancement. See ASP.NET MVC 2 Released for more info.

Migrating Project from ASP.NET MVC1 to ASP.NET MVC2

I am currently using ASP.NET MVC1 in my project but now i am planing to move on ASP.NET MVC2.
What are the changes i need to do in my project to change MVC version? just need to change System.Web.MVC dll with MVC 2 dll or any other changes i required?
This is the release post on Scott Gu's Blog: http://weblogs.asp.net/scottgu/archive/2010/03/11/asp-net-mvc-2-released.aspx
This tool performs all the re-referencing for you:
http://weblogs.asp.net/leftslipper/archive/2010/03/10/migrating-asp-net-mvc-1-0-applications-to-asp-net-mvc-2-rtm.aspx
You might also want to grab the release notes off there MSDN download page: http://www.microsoft.com/downloads/details.aspx?FamilyID=c9ba1fe1-3ba8-439a-9e21-def90a8615a9&displaylang=en
There are a couple of breaking changes to watch out for.
The easiest is to follow instructions from here http://www.asp.net/learn/whitepapers/aspnet-mvc2-upgrade-notes/ If this doesn't work for whatever reason, describe the problem here...

ASP.NET MVC 2.0 overview information?

I have heard that Microsoft is developing a MVC 2.0 platform for Visual Studio 2010.
Does anyone have a good source of information about the upcoming project?
Specifically, an overview of the changes and new features?
The roadmap was recently published on the CodePlex site:
ASP.NET MVC Roadmap
There's a Roadmap for MVC, including 2.0, at CodePlex. Also, you may want to follow Phil Haack's blog -- lot's of info there.
The new strongly typed Html helpers are really nice and work well arlready in the MVC futures library.

Where to get Microsoft.Web.Mvc.dll

Where do you get Microsoft.Web.Mvc.dll? I see it included in a lot of ASP.NET MVC open-source projects but it's not on my system after having installed ASP.NET MVC Beta and .NET 3.5 SP1.
In the ASP.NET MVC Beta source code from codeplex.com the Microsoft.Web.Mvc.dll is produced by the MvcFutures project. Is everyone compiling this module themselves?
EDIT: now that I know what it's called I see where Scott Gu mentions it in his release notes: ASP.NET MVC Futures Assembly
That's the MVC Futures project.
MVC 1.0 Futures:
http://aspnet.codeplex.com/releases/view/24471
MVC 2 Futures:
http://aspnet.codeplex.com/releases/view/41742
MVC 3 Futures:
http://aspnet.codeplex.com/releases/view/58781
Looks like this is the final 1.0 version !
ASP.NET MVC v1.0 Futures
application, 104K, uploaded Mar 12
The above page has been moved to http://aspnet.codeplex.com/releases/view/24471. From there download the Data Annotations Model Binder Sample. Then compile it and build it.
For anyone who might still be looking for this many years later (to revive an old bit of source code, for example, as I was), there are now Nuget packages for the various versions of MVC Futures (which gives you access to the Microsoft.Web.Mvc namespace).
They are imaginatively named, after the version of MVC they belong with:
Mvc2Futures
Mvc3Futures
Mvc4Futures
...apart from the MVC 5 one, which is called
Microsoft.AspNet.Mvc.Futures
IIRC, it was already built and included.
For ASP.NET MVC RC1 the new address is
http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=22359
Tak a look at this blog. It highlights areas of the MVC Future
http://msmvps.com/blogs/luisabreu/archive/tags/MVC/default.aspx
You have to download the Data Annotations Model Binder Sample at http://aspnet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=24471 . Then compile and build the project.

Resources