DCSIMG
Linq - Sig-

Sig-

Code and stuff.

Browse by Tags

All Tags » Linq (RSS)
Sorry, but there are no more tags available to filter with.
How do YOU use your datacontext ?
Well, this will be a very short post, and a very simple one, really. I've just started working on my first _real_ app with linq (I know, a shame, isn't it...), and I was looking to manage my datacontext, so that I wouldn't have to create a new database connection for each query... so I came up with this : public static class DataContextWrapper <T> where T : DataContext { public static T Instance { get { if ( HttpContext .Current.Items[ "request" ] == null ) { string connString...
Posted: Dec 31 2007, 08:22 PM by silver83 | with no comments
תגים: