It is a command-line tool that provides the following functionality:
??‘ Create .csdl, .ssdl, and .msl files that are used by the entity data model.
??‘ Validate existing models.
??‘ Generate source code files containing object classes generated from a .csdl file.
??‘ Generate source code files containing generated views from the .ssdl, .csdl, and .msl files.
The Entity Data Model Generator tool is located in \Windows\Microsoft.NET\Framework\v3.5.
Its general syntax is:
EdmGen /mode:choice [options]
The following table lists the available modes for the EdmGen tool. You must specify one of them.
342
Appendix B: LINQ to Entities: The ADO.NET Entity Framework
Mode Description
ValidateArtifacts Validates the .cdsl, .ssdl, and .msl files. Requires at least one
/inssdl or /incsdl argument. If /inmsl is specified, the /inssdl and
/incsdl arguments are also required.
FullGeneration Generates .cdsl, .ssdl, and .msl, object layer and view files. Updates
the database connection information in the /connectionstring option.
Requires a /connectionstring argument and either a /p argument or
/outssdl, /outcsdl, /outmsdl, /outobjectlayer, /outviews, and
/entitycontainer arguments.
Pages:
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531