views:

1221

answers:

7

Are there any open-source examples of ASP.NET MVC applications that use the Entity Framework? I have found Nerd Dinner to be helpful but it is using Linq to SQL.

I am trying to use the Entity Framework in a strongly-typed ASP.NET MVC project and am finding that anything beyond the simple tutorial becomes rather difficult to implement. I am thinking that if I could see some slightly more complex example code, that would help me a great deal. I am particularly interested in examples that are "real-world" and have to deal with multiple data tables when performing data entry/updates. Is anyone familiar with a good source for this information?

So far in my experience, I have not used much ASP.NET MVC but have been using the Entity Framework for about 8 months.

+1  A: 

Here is what I found so far

ASP.NET MVC Example Application over Northwind with the Entity Framework

Same article but possibly newer?

Jeremy Coenen
This is helpful, but I am ideally looking for more complex (i.e. real-world examples).
YeahStu
+1  A: 

The EF team, in conjunction with P&P, are currently in the process of developing an EF (version 4) data access reference implementation that uses ASP.NET MVC as the front-end.

The project will be made available iteratively on CodePlex here:

http://dataguidance.codeplex.com/

We haven't yet made our first source drop but it will be happening within the next couple of weeks.

UPDATE: We have now dropped code - please be advised that it should be considered alpha quality and is subject to change.

Andrew Peters
This is definitely what I am looking for, but I must admit it is a bit confusing to try and learn what the source code is doing with a lot of the new features of .NET 4 to which I haven't yet been exposed.
YeahStu
+1  A: 

You might check out MvcCms at http://mvccms.codeplex.com. It isn't officially released until July but there is source code available.

MvcCmsJon
Mvc Cms has an official release now. Only a moth late!
MvcCmsJon
A: 

There's also the MVC Music Store now: http://mvcmusicstore.codeplex.com/ that shows MVC2 and EF4.

Tommy Williams
A: 

http://asp.net/mvc has recently been updated with the music store, and the examples now use EF.

ZombieSheep