Installing Entity Framework 6 into your Project

In this tutorial, you will learn:

1. How to install Entity Framework 6 into your project?

You can install Entity Framework 6 via Nuget but following prerequisite should be installed on your PC before installing Entity Framework 6.

1. .NET Framework 4.5 or later 2. Visual Studio 2012 or later 3. MS SQL Server 2005/2008/2012 Express or later

So, let’s start installing EF on your project.

Step 1:

Open Visual Studio 2012 or 2015. Here, I am using VS 2015. Create
New ASP.NET WEB Application: Install_EF and click OK.

Create New MVC Project

Step 2:

Select MVC in template window and change authentication to No Authentication and click OK.

Step 3:

Open Solution Explorer. Right Click on your project name and select Manage NuGet Packages. You must have an active internet connection to install NuGet Package into your project.

Install EF via NuGet

Step 4:

In NuGet Package Manager, find for Entity Framework and click on Install button to install it.

Install Entity Framework  

Step 5:

A Review Changes dialog box will appear asking your confirmation to changes. Click OK.

Install Entity Framework

Step 6:

A License Acceptance window will appear. Click on I Accept to start Installation. The installation will take just a few seconds.

Install Entity Framework

Step 7:

You will see a VS Output Window installing Entity Framework.

Install Entity Framework

Step 8:

After installing, you can see it in Solution Explorer. Expand References in Solution Explorer and here you can see that EF has been installed into your project successfully.

Install Entity Framework

Summary

In this chapter, you learned how to install Entity Framework into your Project. In the next chapter, you will create your first demo project using Entity Framework 6. You must complete the next chapter because it is gonna to give you a whole view of Entity Framework in a single project. Next chapter is Overview of EF6 with New Database

More Articles

 

Share your thought