Using .NET Objects
The ADO.NET Entity Framework data provider supports the .NET public objects, exposing them as sealed objects.
For more information, see .NET Objects Supported.
The ADO.NET Entity Framework programming contexts inherently eliminate the need to use some ADO.NET methods and properties. These properties and methods remain useful for standard ADO.NET applications. The online help, which is integrated into Visual Studio, describes the public methods and properties of each class.
Table 20 lists the properties and methods that are not required or are implemented differently when using the data provider with an ADO.NET Entity application.
 
Use the StatisticsEnabled or StatisticsDisabled stored procedure. See Using Stored Procedures with the ADO.NET Entity Framework for information on using this functionality in an ADO.NET Entity Framework application.
Creating a Model
The Entity Framework creates a model of your data in Visual Studio.
NOTE: Developing with the Microsoft ADO.NET Entity Framework data provider requires that you use Microsoft .NET Framework Version 4.5 or 4.6 and Visual Studio 2012 or later with version 4.2 of the PSQL ADO.NET Entity Framework data provider.
To create a model of your data in Visual Studio using the Entity Framework, you must first ensure that you already have the database schema available.
1
2
3
Select ADO.NET Entity Data Model, then click Add.
4
If you have not configured EF6, select Generate from database and click Next.
If you have configured EF6, select EF Designer from database and click Next.
5
On the Choose your Data Connection page, click New Connection to create a new connection. If you have an established connection, you can select it from the drop-down list.
6
7
a.
If the radio buttons are selectable, select Yes, include the sensitive data in the connection string to include the sensitive data in the connection string.
b.
In the Save entity connection settings field, type a name for the name of the main data access class or accept the default.
c.
Click Next.
8
If you have configured EF6 for the current project, proceed to the next step.
If you have not configured EF6 for the current project, on the Choose Your Version page, proceed with the default Entity Framework 5.0 by clicking Next.
NOTE: To use EF6 with your current project, exit the wizard, configure EF6, and then rebuild the project. When you rebuild the project after configuring EF6, the wizard does not display the Choose Your Version page and you can directly proceed to the next step.
9
10
Click Finish. The model is generated and opened in the Model Browser.