create entity data model using ado.net entity framework designer in visual studio
The ADO.NET Entity Data Model can be created in two ways. One using the ADO.NET Entity Data Model Designer and the other using the command line Entity Data Model Designer - EdmGen.exe
In this article we will learn how to create an Entity Data Model using the ADO.NET Entity Data Model Designer which is a Visual Studio tool. Using this method we can use the graphical user interface and also drag and drop features. See this article to know how to create ADO.NET Entity Data Model using command line utility.
Now we will create SalesOrderManagement Entity Data Model based on the SalesOrderManagement using the ADO.NET Entity Data Model Designer. The database is small and compact because I kept it simple for this exercise. The SalesOrderManagement database contains two tables. They are:
Customer
Order
To create an entity data model using the ADO.NET Entity Data Model Designer, follow these simple steps:
In this article we will learn how to create an Entity Data Model using the ADO.NET Entity Data Model Designer which is a Visual Studio tool. Using this method we can use the graphical user interface and also drag and drop features. See this article to know how to create ADO.NET Entity Data Model using command line utility.
Now we will create SalesOrderManagement Entity Data Model based on the SalesOrderManagement using the ADO.NET Entity Data Model Designer. The database is small and compact because I kept it simple for this exercise. The SalesOrderManagement database contains two tables. They are:
Customer
Order
To create an entity data model using the ADO.NET Entity Data Model Designer, follow these simple steps:
- Create a new application of your choice, it can be a Console application or windows application.
- In the solution explorer window, right click on the project and select Add-> New Item option.
- In the Add New Item dialog box, Select the Ado.Net entity data model template as shown in the below figure. Give the name as SoModel to your data model and click the Add button.
- The Entity Data Model Wizard is displayed. Select the option Generate from Database option and click on the Next button.
- In the next dialog box, select the Connection and give a name to entity connection string as SalesOrderManagementEntities and click on Next button.
- In the next screen of Entity Data Model wizard, select the database objects like tables, views and stored procedures to include in the data model.
- Expand the Tables node and select two tables - Customer and order and click the Finish button. Note that the database SalesOrderManagement does not contain any views or stored procedures.
- A new model will be displayed in the designer window in the solution explorer as shown below. The generated Entity Data Model is saved with the name SoModel.edmx.

Entity Framework Articles
- add an entity to associated entities
- entity framework entity data model
- entity framework orm object relational mapper
- querying entity data model using objectcontext
- using ado net entity data model in windows applications.html
- create entity data model using ado.net entity framework designer in visual studio
- create-sales-order-management-data-model-using-edmgen-tool.html
- display data in a gridview using ado.net entity data source control
- ways of querying entity data model
- query entity data model using linq to entities
- query entity data model with object services and entity sql
- query entity data model using linq methods
- parameterized objectquery against a entity data model
- query entity data model entity client
- linq to entities query with projections in c#
- entity framework - save changes to entities
- insert new objects in entity framework
- deleting entities using deleteobject() method of objectcontext
- binding ado.net entity framework to a listbox in c#
- entity framework load method
- eager loading using include method in entity framework
- entity framework - retrieving a single entity
Most Viewed
Azure Q & A
Azure Platform
Grid-View
GridView CommandField example
Details-View
GridView and DetailsView Master/Detail page using SqlDataSource control
POCO
POCO overview and advantages - POCO class, Entity Framework in Enterprise Applications
Entity Framework
Query entity data model using linq to entities
Array List
Difference between arraylist and list collection
Web Services
How to create a Web service using Visual Studio.net
Form-View
FormView DataBound Event
Object Oriented Programming
Calling base class constructor in C#
Linq
Convert a sequence to a generic list using ToList()method
Project Ideas
Project ideas for students
AccountingSoftware
Accounting Software
MVC
Creating an ASP.Net MVC 3 application
.Net
Using assemblies in .net applications
ASP .Net
How to implement form validation using ASP.Net 2.0 Validation Controls
VB .Net
Constructors in Visual Basic.Net