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 code-first, download the latest LINQPad beta and 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 500,000 downloads

LINQPad

LINQPad

Delicious Bookmark this on Delicious

NEW LINQPad is now on Facebook!

More

LINQPad Forum

LINQPad + StackOverflow

LINQPad + Mindscape LightSpeed

LINQPad + OData

LINQPad + DevForce

Method Chaining and Debugging

LINQBugging WinForms/WPF

Terry's LINQPad Extensions

Videos

Writing queries with LINQPad
   - Hi-res QuickTime

LINQPad + EF

V2 and Beyond

Dimecasts LINQPad Intro

LINQPad + OData


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