[英]generate only objectLayer of Entity Framework Model by edmgen tool
How to generate only objectLayer by edmgen tool , without generating csdl, ssdl and views ? 如何通过edmgen工具生成唯一objectLayer,而不会产生CSDL,SSDL和看法 ?
"%windir%\\Microsoft.NET\\Framework\\v4.0.30319\\edmgen.exe" /mode:fullgeneration /c:"Data Source=.\\sqlexpress; Initial Catalog=uqs; Integrated Security=SSPI" /project:generateEntityModel /entitycontainer:uqsEntities /namespace:uqsModel /language:CSharp /outobjectlayer:"D:/uqsObjectLayer.cs" “%windir%\\ Microsoft.NET \\ Framework \\ v4.0.30319 \\ edmgen.exe” / mode:fullgeneration / c:“数据源=。\\ sqlexpress;初始目录= uqs;集成安全性= SSPI” / project:generateEntityModel / entitycontainer :uqsEntities / namespace:uqsModel / language:CSharp /outobjectlayer:"D:/uqsObjectLayer.cs“
in this script I don't write location to write csdl, ssdl and views , but they are generated in C:\\Users\\adminUser in windows Vista and objectLayer generated to D:/uqsObjectLayer.cs . 在此脚本中,我不写位置来写csdl,ssdl和视图,但是它们是在Windows Vista中的C:\\ Users \\ adminUser中生成的,而objectLayer则生成为D:/uqsObjectLayer.cs 。 If I use /mode:EntityClassGeneration , this option requires the /incsdl argument and either the /project argument or the /outobjectlayer argument. The /language argument is optional.
如果使用/ mode:EntityClassGeneration ,则this option requires the /incsdl argument and either the /project argument or the /outobjectlayer argument. The /language argument is optional.
this option requires the /incsdl argument and either the /project argument or the /outobjectlayer argument. The /language argument is optional.
But I don't want use csdl file. 但是我不想使用csdl文件。 As I understand, edmgen.tool can not create objectlayer without csdl file. 据我了解,edmgen.tool离不开CSDL文件中创建objectlayer。 Now is there alternate way or tool for generating objectlayer from db? 现在有另一种方法或工具,从数据库中生成objectlayer?
mode:EntityClassGeneration doesn't generate CSDL; 模式:EntityClassGeneration不生成CSDL; it reads it. 它读取它。 You cannot generate source code without reading CSDL, ever (note, though, that the CSDL can be part of an EDMX file). 您永远都无法阅读CSDL来生成源代码(不过请注意,CSDL可以是EDMX文件的一部分)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.