Entity Framework - SPLessons

Entity Framework Setup

Home > Lesson > Chapter 3
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

Entity Framework Setup

Entity Framework Setup

shape Description

There are two ways to setup entity framework.
  1. Via Nuget Package which is included in the .Net Framework
  2. Via Nuget Package included in the EntityFramework.dll 
In the first case, .Net Framework 4.0/4.5 is included in EF Core API. By using this API, Entity Framework can be used. In the second case, the separate EntityFramework.dll will be introduced to use entity framework. This is not dependent on the .Net Framework.

shape Softwares

The following softwares must be installed in system to work with entity framework.
  • Visual Studio 2012/2013
  • SQL Server 2008/2012

shape Steps

Follow the below steps to know the setup for Entity Framework by using the first case.
  • Create an ASP.Net web Application
  • Now, See the Solution Explorer ->Right click on the Application Name and then select Manage Nuget Packages as shown in the below figure.
 
  • Then, the new window will be open as shown in the below figure.
   
  • Click on the online which is in left side. Click to install the Entity Framework as shown in the above figure.
  • Then, Entity Framework in the References (which is in the Solution Explorer) can be seen as shown in the below figure.