# Saturday, April 30, 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). 


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


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



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

And voila:


Happy Coding!

Wednesday, November 09, 2011 11:37:04 AM (US Mountain Standard Time, UTC-07:00)
Has anyone tried the alternative method of passing in a connection string through the constructor that inherits from System.Data.Entity.DbContext? If so, can some one post an example of the string and call?

Friday, November 11, 2011 8:48:07 AM (US Mountain Standard Time, UTC-07:00)
I am very much keen to seek such a beautiful and informative websites,
like yours.
Please login with either your OpenID above, or your details below.
(will show your gravatar icon)
Home page

Comment (Some html is allowed: b, blockquote@cite, em, i, strike) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

[Captcha]Enter the code shown (prevents robots):

Live Comment Preview