我们可以从脚本实用程序生成edmx和cs代码吗?

问题描述:

是否有实用程序可以自动执行此任务?如果是,我们可以使用一些开关来指示我们需要哪个关联吗?
谢谢。

Is there an utility can automate this task? If yes, can we use some switch to indicate which association we need?
Thank you.

您可以使用EdmGen实用程序,它可以在.net框架文件夹中的v3.5文件夹

要从数据库生成所有需要的文件,您可以使用完整模式
You can use the EdmGen utility which can be found in the v3.5 folder in the .net framework folder

To generate all needed files from a database you can use the fullgeneration mode