<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/wordpress-mu-1.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Discussion on: LINQ to SQL and the quest for the perfect DataContext &#8220;lifetime&#8221;</title>
	<link>http://itknowledgeexchange.techtarget.com/serviceendpoint/linq-to-sql-and-the-quest-for-the-perfect-datacontext-lifetime/</link>
	<description>Yet another destination in a service-oriented world</description>
	<pubDate>Sun, 12 Oct 2008 00:19:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=wordpress-mu-1.2.1</generator>

	<item>
		<title>By: Quango</title>
		<link>http://itknowledgeexchange.techtarget.com/serviceendpoint/linq-to-sql-and-the-quest-for-the-perfect-datacontext-lifetime/#comment-67</link>
		<author>Quango</author>
		<pubDate>Fri, 26 Sep 2008 09:52:01 +0000</pubDate>
		<guid>http://itknowledgeexchange.techtarget.com/serviceendpoint/linq-to-sql-and-the-quest-for-the-perfect-datacontext-lifetime/#comment-67</guid>
		<description>Let's look at your WinForms approach. One datacontext - great for cacheing static data like a list products. Forms are databound to the objects retrieved via LINQ.

User opens Form A to edit some data on Table A.. is half way through editing and gets a phone call - can you change something on Table B. 

So opens Form B and edits the data, clicks save, which calls our .SubmitChanges. Oh dear - one datacontext - one operation - she's saved edits on A and B and now A is modified even though she didn't want to do that.</description>
		<content:encoded><![CDATA[<p>Let&#8217;s look at your WinForms approach. One datacontext - great for cacheing static data like a list products. Forms are databound to the objects retrieved via LINQ.</p>
<p>User opens Form A to edit some data on Table A.. is half way through editing and gets a phone call - can you change something on Table B. </p>
<p>So opens Form B and edits the data, clicks save, which calls our .SubmitChanges. Oh dear - one datacontext - one operation - she&#8217;s saved edits on A and B and now A is modified even though she didn&#8217;t want to do that.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
