Print Page | Close Window

From EDMX to Code First

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3077
Printed Date: 02-Apr-2025 at 6:18am


Topic: From EDMX to Code First
Posted By: gregweb
Subject: From EDMX to Code First
Date Posted: 02-Nov-2011 at 8:17pm
OK, so I have an mid-sized app with about 25 tables created using the Database first approach.

Then Code First comes along and it seems like a good idea. The question is, Do I have to code all of the Entities by hand? Is there some way to take the existing auto-generated class and use it as a starting point? I really don't like the idea of having to rewrite the classes from scratch.

Greg




Replies:
Posted By: DenisK
Date Posted: 02-Nov-2011 at 11:07pm
Hi Greg;

Yes there is.  http://drc.ideablade.com/xwiki/bin/view/Documentation/code-second - http://drc.ideablade.com/xwiki/bin/view/Documentation/code-second


Posted By: gregweb
Date Posted: 03-Nov-2011 at 8:17am
Perfect, thanks.

Greg



Print Page | Close Window