# 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!

Wednesday, 09 November 2011 11:37:04 (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, 11 November 2011 08:48:07 (US Mountain Standard Time, UTC-07:00)
I am very much keen to seek such a beautiful and informative websites,
like yours.
OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
(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