upgrade to .net 4 entity framework (.edmx) instead of .dbml

Topics: Developer Forum
Dec 10, 2011 at 4:05 PM

The MVC code is very useful and I'm working to convert to MVC 3 and Entity Framework.  Has this already been done and does the example code exist?


Dec 13, 2011 at 12:10 PM

This doesn't exist that I know of. I'm about 1/2 way finished with a port to use EF Code First. I'd be interested in seeing what you come up with!

Dec 13, 2011 at 12:17 PM

I am working on it myself - converting to razor views as well.  I'm using the MVC3 Music Store Example and a few other very simple sites I found online.  I started with TBH database and used EF4 to generate my models.

Good luck to you on your project.  I can post back when mine is online.

Dec 13, 2011 at 12:33 PM

Awesome! Have you checked out the TheBeerHouse_MVC3 branch in the source code tree?

Dec 13, 2011 at 12:45 PM

Yes - But it is still using .aspx forms and master pages for the views instead of Razor with the layouts. And it is still using the .dbml - Linq to Sql. instead of Linq to Entity EF4.

Dec 16, 2011 at 7:25 PM

Hey, I just checked in my conversion from L2S to EF Code First in the TheBeerHouse_MVC3 branch. Take a look and let me know what you think.


Apr 13, 2013 at 1:46 PM
I saw beerhouse MVC 3 at http://thebeerhouse.codeplex.com/SourceControl/changeset/view/99885#1881439
But, I could not run it on my laptop. I can see a few folders like- .nuget,TheBeerHouse.Setup and so on.
Can anyone tell me how I can get this project working?