# Saturday, 30 April 2011
« Can’t use SetEntitySetPageSize and MaxRe... | Main | A more complete Simple Membership MVC 3 ... »

If you are doing work with LINQ, LinqPad is an indispensable tool.  The latest beta release (4.34.2) of LinqPad has added support for connecting to Entity Framework Code First libraries.  As long as your data context is based on DbContext.

Now when you add a connection you’ll get a new option for Entity Framework POCO (4.1 RC). 

AddConnection

Next, you’ll need to browse to your Code First Library:

BrowseForPOCOLibrary

If you’re data context is based on DbContext (public class YourContext: DbContext) then LinqPad will find your data context:

DBContext 

ConnectionStringSetup

The last step is to point it to your application / web config file for the connection string:ConnectionString

And voila:

Voila

Happy Coding!

Posted 04.30.2011  #    Comments [2]  |