You can create the ADO.NET Entity Data Model in one of two ways:
Use the ADO.NET Entity Data Model Designer
Use the command line Entity Data Model Designer called EdmGen.exe
We will first take a look at how we can design an Entity Data Model using the ADO.NET Entity Data Model Designer which is a Visual Studio wizard that is enabled after you install ADO.NET Entity Framework and its tools. It provides a graphical interface that you can use to generate an Entity Data Model.
Here again are the tables of our Payroll database that we will use to generate the data model:
Employee
Designation
Department
Salary
ProvidentFund
To create an entity data model using the ADO.NET Entity Data Model Designer, follow these simple steps:
1. Open Visual Studio.NET and create a solution for a new web application project as seen below and save with a name.
2. Switch to the Solution Explorer, right click and...