Thursday 29 August 2013

How to add Entity Framework to asp.net web application

How to add Entity Framework to asp.net web application


1) Create Website
2) Add New Item Select ADO.NET Entity Data Source

3) Click Add then select "Generate from DataBase"
4)  Click on New Connection , Enter Server name ,username,password and Database name
5)  Choose your Data Connection ConnectionString can be changed here
6)  Select Data Base Objects here.

7) Click on FINISH

8)   .edmx file will be generated with selected Database objects


8) Compile Before Accessing Entities.

No comments:

Post a Comment