Using LINQPad with Entity Framework

LINQPad lets you query Entity Framework models that you define in Visual Studio. Here's how to proceed:

  1. Create an ADO.NET Entity Data Model in a Visual Studio project, and build.
  2. From LINQPad, click Add Connection (top left) and choose Entity Framework in the bottom listbox. If you're using Entity Framework 4.1/4.2 code-first, choose Entity Framework - POCO).
  3. Click Browse and locate the assembly (DLL or EXE) that you built in step 1:
    Entity Framework Choose Assembly
  4. Choose your typed ObjectContext class and Entity Data Model: Entity Framework Choose EDM
  5. Confirm the SQL Server and database details and click OK.

    Your Conceptual Model will now show in the Schema Explorer. Right-click to start a new query:

    Entity Framework Schema TreeView

A few notes:

More Information

View O'Reilly's detailed video tutorial on using LINQPad with Entity Framework - and LINQPad's other new features.

Also, check out Stefan Cruysberghs's blog which provides further information on using LINQPad with Entity Framework and custom LINQ to SQL data context classes.

Over 1 million downloads



Delicious Bookmark this on Delicious

Follow LINQPad on Facebook


LINQPad Forum

LINQPad + Mindscape LightSpeed

LINQPad + DevForce

LINQPad + DevArt

AWS with LINQPad

Method Chaining and Debugging

LINQBugging WinForms/WPF

Terry's LINQPad Extensions


Writing queries with LINQPad
   - Hi-res QuickTime


V2 and Beyond

Dimecasts LINQPad Intro

LINQPad + OData

LINQPad was written by Joseph Albahari
© 2007-2015. Site hosted in Windows Azure