Thursday, July 2, 2015

how to work with Entity Framework project

Steps to create entity frmawork project 1.Create a class library project for Context name YourProjectNameContext. 2.Right click the project and add new edmx. 3.Before creating edmx ensure that your Database is ready with proper relationship. 4.Open edmx file -> right click -> Add code generation Item -> select ADO.Net Self-tracking Entity...