Using LINQPad with Entity Framework

LINQPad lets you query Entity Framework models that you define in Visual Studio. In a nutshell, 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)
  3. Set the Data Context dropdown to Custom Entity Framework ObjectContext:
    Entity Framework DataContext Dropdown
  4. Click Browse and locate the assembly (DLL or EXE) that you built in step 1:
    Entity Framework Choose Assembly
  5. Choose your typed ObjectContext class and Entity Data Model: Entity Framework Choose EDM
  6. Confirm the SQL Server and database details and click OK.
  7. 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 150,000 downloads

LINQPad

LINQPad


External links

Video Tutorials:
     O'Reilly
       - Hi-res QuickTime (50MB)
     LINQPad + EF
     Dimecasts

LINQPad Forum

LINQPad + Mindscape LightSpeed

LINQPad and Azure

LINQBugging WinForms/WPF

Terry's LINQPad Extensions

The LINQ Quiz

More...
 


LINQPad was written
by Joseph Albahari.

© 2007-2010