What If I Don’t Call Dispose() on my LINQ to SQL DataContext Object?(weblogs.asp.net)
submitted by
crpietschmann(11.3k) 3 years, 9 months ago
Steven Walther recently posted on the subject of disposing of DataContext objects and provided some interesting insight into what actually happens. From what he says it sounds like the DataContext object acts much like the SqlDataAdapter class. It opens the connection right before a query is executed and closes it immediately after. I don’t want to steal Steven’s thunder so check out his post on the subject (the last part of the article talks about the consequences…or lack of consequences…of not calling Dispose()).
|category: CLR
|Views: 37
tags:
using dispose LinqToSql CLR LINQ another
Everyones tags:
Your Tags: