New Posts New Posts RSS Feed: EntitySchemaGenerator or EdmGen of EF4
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

EntitySchemaGenerator or EdmGen of EF4

 Post Reply Post Reply
Author
k_cire0426 View Drop Down
Newbie
Newbie
Avatar

Joined: 21-Jan-2012
Posts: 12
Post Options Post Options   Quote k_cire0426 Quote  Post ReplyReply Direct Link To This Post Topic: EntitySchemaGenerator or EdmGen of EF4
    Posted: 21-Jan-2012 at 11:14am
Hello,

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

Thanks
Back to Top
DenisK View Drop Down
IdeaBlade
IdeaBlade


Joined: 25-Aug-2010
Posts: 715
Post Options Post Options   Quote DenisK Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
k_cire0426 View Drop Down
Newbie
Newbie
Avatar

Joined: 21-Jan-2012
Posts: 12
Post Options Post Options   Quote k_cire0426 Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
DenisK View Drop Down
IdeaBlade
IdeaBlade


Joined: 25-Aug-2010
Posts: 715
Post Options Post Options   Quote DenisK Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down