Sunday, 27 March 2016

How to Add ADO.Net Entity Data Model(.edmx) file with database changes in MVC5?

How to Add ADO.Net Entity Data Model(.edmx) file with database changes in MVC5?

1. Add New Folder names as Entities
2. Right Entity folder ---->Add ----> Add New Item---> Data ------>ADO.net Entity DataModel.
3. Name = > MyEntity ---> Right click Entity.edmx------>choose update modelfrom Browser.
4. Choose EF Designer from Database ---->Next ----> Yes, include the sensitive data.. -----> save connectionstring as FytotEntites -----> Next
5. Choose Table and StoredProcedure---> MyEntity --->Finish.
6. Now Code automatically Generated in MyEntity.Context.cs

No comments: