A set of classes is created with the files;
the developer uses those classes to work directly with the conceptual model. Within Visual Studio
330
Appendix B: LINQ to Entities: The ADO.NET Entity Framework
2008, you can use a wizard-driven Visual Studio template that creates the files automatically with the
information you specify. The other option is a command-line tool the Entity Data Model Generator
(EdmGen) that accomplishes the same thing. You??™ll look at the EdmGen tool later in this appendix, and
you??™ll also see how to use the template.
Using the Entity Framework is quite simple because it consists of number of namespaces that construct
and maintain the metadata information needed for models and mapping. System.Data.Entity uses the
.NET Framework data provider and the EntityConnection class to accomplish this.
The great thing is that LINQ to Entities is fully supported by the Entity Framework. LINQ to Entities
provides query support against the conceptual objects and strongly typed LINQ queries.
Installing the ADO.NET Entity Framework
Entity Framework is not installed when you install any beta of Visual Studio.
Pages:
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515