<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Linq to SQL DataContext.Attach Heartaches</title>
	<atom:link href="http://jamisonwhite.com/2008/08/12/linq-to-sql-datacontextattach-heartaches/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamisonwhite.com/2008/08/12/linq-to-sql-datacontextattach-heartaches/</link>
	<description>Just another WordPress.com site</description>
	<lastBuildDate>Mon, 18 Oct 2010 12:15:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: vishal kadiwala</title>
		<link>http://jamisonwhite.com/2008/08/12/linq-to-sql-datacontextattach-heartaches/#comment-30</link>
		<dc:creator><![CDATA[vishal kadiwala]]></dc:creator>
		<pubDate>Mon, 18 Oct 2010 12:15:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamisonwhite.com/blog/?p=184#comment-30</guid>
		<description><![CDATA[hi,

very much thanks for this solution.
It help&#039;s a lot.
Thanks,]]></description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>very much thanks for this solution.<br />
It help&#8217;s a lot.<br />
Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sidar Ok</title>
		<link>http://jamisonwhite.com/2008/08/12/linq-to-sql-datacontextattach-heartaches/#comment-6</link>
		<dc:creator><![CDATA[Sidar Ok]]></dc:creator>
		<pubDate>Sat, 23 Aug 2008 01:37:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamisonwhite.com/blog/?p=184#comment-6</guid>
		<description><![CDATA[Also, on datacontext disposal thing - in this particular example there happens to be one time the two datacontexts are alive, because a disposable object is disposed at the end of a using scope. So at the inner method who is responsible for deletion the mother data context is still alive, and tracking the object to be deleted.

Hence, db context doesnt want to track an object which is already dirty, and already another context is responsible of it. So disabling the object tracking in the readonly context solves the problem.

In some cases the solution might not be that easy, then you may want to put them in seperate data contexts.]]></description>
		<content:encoded><![CDATA[<p>Also, on datacontext disposal thing &#8211; in this particular example there happens to be one time the two datacontexts are alive, because a disposable object is disposed at the end of a using scope. So at the inner method who is responsible for deletion the mother data context is still alive, and tracking the object to be deleted.</p>
<p>Hence, db context doesnt want to track an object which is already dirty, and already another context is responsible of it. So disabling the object tracking in the readonly context solves the problem.</p>
<p>In some cases the solution might not be that easy, then you may want to put them in seperate data contexts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sidar Ok</title>
		<link>http://jamisonwhite.com/2008/08/12/linq-to-sql-datacontextattach-heartaches/#comment-5</link>
		<dc:creator><![CDATA[Sidar Ok]]></dc:creator>
		<pubDate>Sat, 23 Aug 2008 01:25:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamisonwhite.com/blog/?p=184#comment-5</guid>
		<description><![CDATA[I just discovered this post and felt content :) Let&#039;s go set up a country now :)

I am really happy to have helped.

I also have implemented a disconnected, multitiered solution with WCF and linq to SQL and prettty much covered most of the cases that one would encounter during this in 2 blog posts:

http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html

http://www.sidarok.com/web/blog/content/2008/06/02/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-2.html

It also includes the source codes. Hope you&#039;ll enjoy!]]></description>
		<content:encoded><![CDATA[<p>I just discovered this post and felt content <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Let&#8217;s go set up a country now <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I am really happy to have helped.</p>
<p>I also have implemented a disconnected, multitiered solution with WCF and linq to SQL and prettty much covered most of the cases that one would encounter during this in 2 blog posts:</p>
<p><a href="http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html" rel="nofollow">http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html</a></p>
<p><a href="http://www.sidarok.com/web/blog/content/2008/06/02/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-2.html" rel="nofollow">http://www.sidarok.com/web/blog/content/2008/06/02/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-2.html</a></p>
<p>It also includes the source codes. Hope you&#8217;ll enjoy!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Carver</title>
		<link>http://jamisonwhite.com/2008/08/12/linq-to-sql-datacontextattach-heartaches/#comment-4</link>
		<dc:creator><![CDATA[Andrew Carver]]></dc:creator>
		<pubDate>Wed, 20 Aug 2008 20:10:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamisonwhite.com/blog/?p=184#comment-4</guid>
		<description><![CDATA[Fascinating.  I did not know that...]]></description>
		<content:encoded><![CDATA[<p>Fascinating.  I did not know that&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

