Sunday, February 27, 2011

What Is Entity Framework??


.edmx File(Entity Framework)


An .edmx file is an XML file that defines a conceptual model, a storage model, and the mapping between these models. An .edmx file also contains information that is used by the ADO.NET Entity Data Model Designer (Entity Designer) to render a model graphically. The recommended practice for creating an .edmx file is to use the Entity Data Model Wizard.

Changes are made to an .edmx file when you use the Entity Designer to modify your model and when you use the Update Model Wizard to update your model based on changes to the underlying database. . There are also some scenarios in which you might have to edit an .edmx file manually.


By default, an .edmx file opens with the Entity Designer. However, you can open an .edmx file with the XML Editor by following these steps:
  1. Make sure your project is open in Visual Studio.
  2. Right-click the .edmx file in Solution Explorer and select Open With...
  3. Select XML Editor and click OK.