Monday, 9 June 2014

Using LinqPad to write Linq Queries

The following are steps on how to query data using Linqpad against an entity Framewok
1. Download and Install Linqpad from http://www.linqpad.net/
2. When you run linqpad you get the following screen
3. Click Add connection, choose Your data context as Entity Framework(db context..
4. Browse to your assembly that contains the edmx framework file. The full name of they typed DBcontext should be automatically populated
5. Choose the Path to the configuration file(should be same folder)
6. Write your query