Print Page | Close Window

Generate DevForce Model from EF Model with customizations

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1668
Printed Date: 30-Apr-2025 at 9:16am


Topic: Generate DevForce Model from EF Model with customizations
Posted By: cjohnson84
Subject: Generate DevForce Model from EF Model with customizations
Date Posted: 03-Mar-2010 at 5:16am
I have been given an EF model in which the various EntityObjects have been customized extensively.  For example, our database contains an Employees table and a Roles table and the various tables added to the database for ASP.NET Authentication.  The developer has gone ahead and customized the EF generated Employee partial class to wrap the properties of the ASP.NET tables we need as well as the Roles table information we need into the Employee partial class.  He has also extended the partial class to "CreateUserLogin", "DeleteUserLogin", etc.
 
Given this EF model I now need to generate the DevForce model.  How do I go about generating the DF model so that the customization made in EF carry forward?  I went ahead and generated a model as a first attempt and checked the "Create developer partial class files" but I just get empty partial classes.
 
What is the proper way to handle this situation?  We're fairly new to using both EF and DEvforce and I think there is now some confusion as well as debate as to where to place all of our custom logic.
 
 



Replies:
Posted By: IdeaBlade
Date Posted: 08-Mar-2010 at 12:55pm
The bad news is, you'll have to port the custom code from the EF developer partial classes to the DevForce ones.

The good new is, most people find that quite easy. Typically much of the code transplants as is, and changes are quite minor.

Let us know if you encounter any problematic issues with the port.



Print Page | Close Window