Print Page | Close Window

Getting Connection object

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=2141
Printed Date: 06-Sep-2025 at 6:48am


Topic: Getting Connection object
Posted By: orcities
Subject: Getting Connection object
Date Posted: 09-Sep-2010 at 3:38pm
In EF you can get the connection object of the Context. How do you do that with WinClient?



Replies:
Posted By: sbelini
Date Posted: 14-Sep-2010 at 3:11pm

Hi,

In a n-tier application, you could get it on the server side only.
 
What exactly are you trying to accomplish?


Posted By: kimj
Date Posted: 14-Sep-2010 at 4:29pm
DevForce delegates all database access to EF, but exposes neither the underylying EntityConnection or ObjectContext.  You can still create your own ObjectContext using the connection information from an EdmKey; you may have seen this approach in the sample NumericIdGenerator.  If you can provide more information on your requirements we'll see how to accomplish what you need within DevForce.



Print Page | Close Window