The following command generates conceptual schema definition language (CSDL), store schema definition language (SSDL), and mapping specification language (MSL) files, and object and view source code files. The EDM files are generated by using all the tables in the Northwind database. The project name is used for the namespace name, the basis for the entity container name (NWModelContext), and to generate the file names (NWModel.csdl, NWModel.ObjectLayer.cs, NWModel.Views.cs, and so on). The files are created in the current directory.
edmgen /mode:fullgeneration /c:"Data Source=yourServer;
Initial Catalog=Northwind; Integrated Security=SSPI" /p:NWModel
The following command uses the SSDL file to generate CSDL and MSL files and the object and view source code files.
edmgen /mode:fromssdlgeneration /inssdl:c:\data\EmpSkillsModel.ssdl
/outcsdl:c:\data\EmpSkillsModel.csdl /outmsl:c:\data\EmpSkillsModel.msl
/outobjectlayer:c:\data\EmpSkillsModel.cs /namespace:EmployeeSkillsModel
/entitycontainer:EmployeeSkills /outviews:EmpSkillsModel.View.cs
The following command creates a Visual Basic object source code file that contains the classes generated from the .csdl file.
edmgen /mode:entityclassgeneration /incsdl:c:\data\EmpSkillsModel.csdl /outobjectlayer:c:\data\EmpSkillsModel.vb /language:vb