| Author |
Share Topic Topic Search Topic Options
|
Robert R
Newbie
Joined: 17-Aug-2010
Posts: 7
|
Post Options
Quote Reply
Topic: Using LinqPad with DevForce Posted: 27-Oct-2010 at 7:53am |
In earlier DevForce versions, I was able to use Joseph Albahari's 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?
|
 |
ting
IdeaBlade
Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
|
Post Options
Quote Reply
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.
|
 |
Robert R
Newbie
Joined: 17-Aug-2010
Posts: 7
|
Post Options
Quote Reply
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.
|
 |
ting
IdeaBlade
Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
|
Post Options
Quote Reply
Posted: 28-Oct-2010 at 4:50pm |
Thanks Robert! We'll look into this and see if we can make it work.
|
 |
mseeli
Newbie
Joined: 20-Sep-2010
Location: Switzerland
Posts: 31
|
Post Options
Quote Reply
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
|
 |
sarmaad
Newbie
Joined: 18-Jul-2010
Location: Sydney
Posts: 15
|
Post Options
Quote Reply
Posted: 29-Oct-2010 at 1:01am |
I use LinqPad too and would love to know how to integrate it, this would be great...
|
 |
hijaggu
Newbie
Joined: 26-Sep-2010
Posts: 21
|
Post Options
Quote Reply
Posted: 11-Mar-2011 at 6:26pm |
|
Any update on this. Can we use LinqPad with DevForce Entity Model ??
|
 |
DenisK
IdeaBlade
Joined: 25-Aug-2010
Posts: 715
|
Post Options
Quote Reply
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.
Edited by DenisK - 14-Mar-2011 at 11:47am
|
 |
jkaster
Newbie
Joined: 23-Mar-2011
Location: Santa Cruz, CA
Posts: 7
|
Post Options
Quote Reply
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.
|
 |
DenisK
IdeaBlade
Joined: 25-Aug-2010
Posts: 715
|
Post Options
Quote Reply
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.
|
 |
jkaster
Newbie
Joined: 23-Mar-2011
Location: Santa Cruz, CA
Posts: 7
|
Post Options
Quote Reply
Posted: 25-Mar-2011 at 12:06pm |
|
Thanks, Denis. I'd really like to be able to conveniently use LINQPad with DevForce models.
|
 |
johnl
IdeaBlade
Joined: 24-Jan-2011
Posts: 35
|
Post Options
Quote Reply
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
Edited by johnl - 13-Jan-2012 at 1:28pm
|
 |
pjcunningham
Newbie
Joined: 19-Jan-2012
Location: Oxfordshire, UK
Posts: 6
|
Post Options
Quote Reply
Posted: 19-Jan-2012 at 2:15pm |
|
|
 |