How To Add Entity Framework In Visual Studio




First of all follow these steps.

Right Click on the Project --> Click Add --> Click Add New Item

How To Add Entity Framework In Visual Studio, How To Configure Entity Framework In Visual Studio, Add Entity Framework In Asp.Net Web Application, Entity Framework In Asp.Net Solution, Configure Entity Framework C#, Entity Framework In MVC, Asp.Net, PHP, HTML

This would leads to the following screen.

How To Add Entity Framework In Visual Studio

Click on the Add Button.

How To Add Entity Framework In Visual Studio

Select Generate From Database and Click Next Button.

How To Add Entity Framework In Visual Studio, How To Configure Entity Framework In Visual Studio, Add Entity Framework In Asp.Net Web Application, Entity Framework In Asp.Net Solution, Configure Entity Framework C#, Entity Framework In MVC, Asp.Net, PHP, HTML

Here you can configure new database. Click on NEW CONNECTION.

How To Add Entity Framework In Visual Studio

Select the SERVER NAME and DATABASE NAME and click OK Button.

How To Add Entity Framework In Visual Studio

This screen confirm the selected SERVER NAME and DATABASE. If Okey click the NEXT Button.

How To Add Entity Framework In Visual Studio

Here you can select the TABLES, VIEWS AND STORED PROCEDURES from the database. Click the FINISH Buton if everyhting is Okey. Now Entity Framework will be added to the solution as shown in the figure.

How To Add Entity Framework In Visual Studio, How To Configure Entity Framework In Visual Studio, Add Entity Framework In Asp.Net Web Application, Entity Framework In Asp.Net Solution, Configure Entity Framework C#, Entity Framework In MVC, Asp.Net, PHP, HTML