Up Model code samples
DevForce 2010 Resource Center » Code samples » Model code samples » Run the DevForce code generator without the EDM Designer

Run the DevForce code generator without the EDM Designer

Last modified on May 06, 2011 16:18

This walkthrough explains how to run the DevForce code generator without launching the EDM designer.


Problem

You want to re-generate your DevForce Entity Model quickly, without launching the Entity Framework Designer

Solution

Sometimes you need to re-generate your entity classes even though nothing has changed in the database schema and you aren't making any changes to the model.

You should (and often must) regenerate your entity model classes whenever you upgrade to a new version of DevForce.

Obviously you're only changing the assembly references; your model and database schema haven't changed.

You don't have to waste time by opening the Entity Framework Design Tool and saving a fake change to trigger re-generation.

You can run the DevForce code generation tool from Visual Studio directly:

  • Highlight the DevForce edmx T4 template file (the ".tt file").
  • Right click to get the context menu
  • Choose "Run Custom Tool"

Example

"Run custom tool"

Created by DevForce on September 27, 2010 15:39

This wiki is licensed under a Creative Commons 2.0 license. XWiki Enterprise 3.2 - Documentation. Copyright © 2015 IdeaBlade