Print Page | Close Window

Using LinqPad with DevForce

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2266
Printed Date: 13-May-2026 at 11:36am


Topic: Using LinqPad with DevForce
Posted By: Robert R
Subject: Using LinqPad with DevForce
Date Posted: 27-Oct-2010 at 7:53am

In earlier DevForce versions, I was able to use Joseph Albahari's http://www.linqpad.net/ - LinqPad against the assembly containing our DevForce business objects.  With the current version of DevForce, I cannot figure out how to make a LinqPad connection to our assembly.  Has anyone successfully used LinqPad with the current version of DevForce?




Replies:
Posted By: ting
Date Posted: 27-Oct-2010 at 2:53pm
Hi Robert,

Can you provide some details as to how you got LinqPad to work with earlier versions of DevForce?  We'd love to support this.



Posted By: Robert R
Date Posted: 28-Oct-2010 at 5:48am
In LinqPad, I first opened the Query Properties dialog and in the "Additional References" list I added the IdeaBlade assemblies, the assembly containing my EF model, and some supporting assemblies used by the EF model assembly.  In the "Additional Namespace Imports" list, I added the namespace of my EF model.  I clicked the "Set as default for new queries" button and then "OK".
 
Then I chose "Add Connection" and on the "Choose Data Context" dialog I chose "Use a typed data context from your own assembly" and selected "Entity Framework" from the list below that.
 
On the next dialog, "LINQPad Connection", in the "Path to Custom Assembly" I entered the path to the assembly containing my EF model.  For the "Full Name of Typed ObjectContext" and "Path to Entity Data Model" fields, I was able to click the "Choose" buttons and select from the list.
 
With the current DevForce release, however, no options appear when I click the Choose button for the "Full Name of Typed ObjectContext" -- that is where I get stuck.
 


Posted By: ting
Date Posted: 28-Oct-2010 at 4:50pm
Thanks Robert!  We'll look into this and see if we can make it work.



Posted By: mseeli
Date Posted: 29-Oct-2010 at 12:32am
I am also using LINQPad and would love to be able to use it with DevForce.
Markus Seeli


Posted By: sarmaad
Date Posted: 29-Oct-2010 at 1:01am
I use LinqPad too and would love to know how to integrate it, this would be great...



Posted By: hijaggu
Date Posted: 11-Mar-2011 at 6:26pm
Any update on this. Can we use LinqPad with DevForce Entity Model ?? 


Posted By: DenisK
Date Posted: 14-Mar-2011 at 11:46am
Hi hijaggu;

This is still on our list to support.

One of the senior engineers ran a little experiment and found that LinqPad works with DevForce to some extent. This experiment was done using LinqPad version 4.31.

"linqpad also works a generic code compiler, so i used their universal demo driver, compield it for .net 4, used their universal dmeo driver to point to the domain model dll and chose the enities object and app.config settings for a devforce desktop app, i then press f4 to address refrence to devforce dlls from teh gac, and put linqpad into "C# Program" mode in the language drop down, i was then able to query agains the bos like a normal console app"

"Another option is to create a dummy/test project, in the new project crate a file link in Visual Studio to the DevForce .edmx file but keep the edmx generation tool as default vanilla EF and regenerate the model. This will allow you to add/query your domain model through the LINQPAD’s EF driver by pointing it to the domain model assembly for the test linked project."

Hope this helps.


Posted By: jkaster
Date Posted: 23-Mar-2011 at 9:30pm
Denis,

Thanks for the update. It's handy to have these hacks/workarounds but many people would obviously appreciate having DevForce assemblies loadable directly into the EF wizard for LINQPad. Perhaps providing a detailed writeup of the steps you mentioned would at least be a good first step.


Posted By: DenisK
Date Posted: 25-Mar-2011 at 11:21am
Hi jkaster;

I'll see if we can provide some writeups of the steps. Thank you for the feedback.


Posted By: jkaster
Date Posted: 25-Mar-2011 at 12:06pm
Thanks, Denis. I'd really like to be able to conveniently use LINQPad with DevForce models.


Posted By: johnl
Date Posted: 13-Jan-2012 at 1:28pm
It's been awhile since this thread started, but we've recently built a DevForce LINQPad driver allows you to use LINQPad with a DevForce model without having to go through all the manual steps of using the Universal or EF driver.

With the DevForce LINQPad driver you can use LINQPad like you normally would, without having to add assemblies, namespaces, or take additional steps.

http://drc.ideablade.com/xwiki/bin/view/Documentation/linqpad-driver - http://drc.ideablade.com/xwiki/bin/view/Documentation/linqpad-driver




Posted By: pjcunningham
Date Posted: 19-Jan-2012 at 2:15pm
Nice

Cheers, Paul



Print Page | Close Window