Print Page | Close Window

EntitySchemaGenerator or EdmGen of EF4

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=3228
Printed Date: 26-Mar-2025 at 5:42am


Topic: EntitySchemaGenerator or EdmGen of EF4
Posted By: k_cire0426
Subject: EntitySchemaGenerator or EdmGen of EF4
Date Posted: 21-Jan-2012 at 11:14am
Hello,

Is DevForce can create edmx file on runtime similar on EF4? 

Thanks



Replies:
Posted By: DenisK
Date Posted: 23-Jan-2012 at 4:15pm
Hi k_cire0426,

DevForce generates code from the edmx. It doesn't generate the edmx itself. We leave that duty to Entity Framework.


Posted By: k_cire0426
Date Posted: 03-Feb-2012 at 2:18am
hello thank you for the reply..

how about the .cs file generated by devforce on design time, could it be created on runtime?


Posted By: DenisK
Date Posted: 05-Feb-2012 at 4:23pm
We don't directly support this yet. 

For the time being, here are some suggestions that are worth exploring.

1. Using the TextTransform utility - http://msdn.microsoft.com/en-us/library/bb126245.aspx

2. Using MSBuild

- http://www.platinumbay.com/blogs/dotneticated/archive/2009/08/28/running-t4-templates-with-msbuild.aspx
- http://geekswithblogs.net/EltonStoneman/archive/2008/07/25/an-msbuild-task-to-execute-t4-templates.aspx

3. Microsoft Code Generation and T4 Text Templates discussion - http://msdn.microsoft.com/en-us/library/bb126445.aspx

A quick note, you still have to compile the generated code (.cs file) in order to use it with your project.

Hope this helps.



Print Page | Close Window