Is it Possible to call a Stored Procedure using LINQ in LINQPad?

Jeff LaFay picture Jeff LaFay · Nov 10, 2010 · Viewed 13k times · Source

In visual studio you have the nice designer that encapsulates a stored proc with a nifty little method. I totally love LINQPad and use it on a daily basis at work (haven't had a need to open up SQL Studio for my job since I've been using it!) and would like to call stored procs while using it.

I'm afraid I know the answer to my own question but I'm hoping that maybe there's a feature I'm missing or perhaps someone has some black magic they can lend me to make this happen. Btw, I'm using LINQPad 4 if that makes a difference.

Edit
See my answer below.

Answer

Daniel Pryden picture Daniel Pryden · Nov 11, 2010

At least in my copy of LINQPad, stored procedures show up in the database treeview and can be invoked directly.

Here's a screenshot:

Screenshot