<?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/"
		>
<channel>
	<title>Comments on: Cascade delete in Entity Framework</title>
	<atom:link href="http://codepolice.net/2008/12/16/cascade-delete-in-entity-framework/feed/" rel="self" type="application/rss+xml" />
	<link>http://codepolice.net/2008/12/16/cascade-delete-in-entity-framework/</link>
	<description>C#, ASP.NET, MVC, LINQ, Wordpress and stuff like that</description>
	<lastBuildDate>Sat, 27 Feb 2010 19:31:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Maan</title>
		<link>http://codepolice.net/2008/12/16/cascade-delete-in-entity-framework/comment-page-1/#comment-254</link>
		<dc:creator>Maan</dc:creator>
		<pubDate>Fri, 04 Sep 2009 15:35:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.codepolice.net/?p=93#comment-254</guid>
		<description>Hi,

I have some problem with cascade delete in EF and I`m wondering if U could help me.

In my application I have Customer with collection of Invoices. Each Invoice has collection of Products. I`m loading Customer objects using linq to entity query:
var selectCustomer = from c in dbContext.Customer.Include(&quot;Invoice.Product&quot;)
where c.Id == id
select c;
And everythig is ok, I have Customers with Invoices and its Products. But when I`m trying to delete single Customer object, EF deletes from DB only customer and invoices, but it isn`t deleting products that refer to invoice in junction table.

Can anyone help?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have some problem with cascade delete in EF and I`m wondering if U could help me.</p>
<p>In my application I have Customer with collection of Invoices. Each Invoice has collection of Products. I`m loading Customer objects using linq to entity query:<br />
var selectCustomer = from c in dbContext.Customer.Include(&#8220;Invoice.Product&#8221;)<br />
where c.Id == id<br />
select c;<br />
And everythig is ok, I have Customers with Invoices and its Products. But when I`m trying to delete single Customer object, EF deletes from DB only customer and invoices, but it isn`t deleting products that refer to invoice in junction table.</p>
<p>Can anyone help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dario</title>
		<link>http://codepolice.net/2008/12/16/cascade-delete-in-entity-framework/comment-page-1/#comment-231</link>
		<dc:creator>Dario</dc:creator>
		<pubDate>Sat, 18 Jul 2009 17:52:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.codepolice.net/?p=93#comment-231</guid>
		<description>hi, thanks for the hint! it saved me a lot of frustration too!
what a pity that this code generating part is not that reliable... but anyway, the problem is solved!</description>
		<content:encoded><![CDATA[<p>hi, thanks for the hint! it saved me a lot of frustration too!<br />
what a pity that this code generating part is not that reliable&#8230; but anyway, the problem is solved!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken Smith</title>
		<link>http://codepolice.net/2008/12/16/cascade-delete-in-entity-framework/comment-page-1/#comment-230</link>
		<dc:creator>Ken Smith</dc:creator>
		<pubDate>Sat, 11 Jul 2009 07:05:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.codepolice.net/?p=93#comment-230</guid>
		<description>Yeah, and the EF isn&#039;t even very new.  This is something that should be fixed.</description>
		<content:encoded><![CDATA[<p>Yeah, and the EF isn&#8217;t even very new.  This is something that should be fixed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tool</title>
		<link>http://codepolice.net/2008/12/16/cascade-delete-in-entity-framework/comment-page-1/#comment-209</link>
		<dc:creator>Tool</dc:creator>
		<pubDate>Sun, 03 May 2009 19:09:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.codepolice.net/?p=93#comment-209</guid>
		<description>What an complete pain.  I suppose things like this will happen since it&#039;s relatively new but not really an excuse.  Thanks for the post though.  Go go entity framework.</description>
		<content:encoded><![CDATA[<p>What an complete pain.  I suppose things like this will happen since it&#8217;s relatively new but not really an excuse.  Thanks for the post though.  Go go entity framework.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd</title>
		<link>http://codepolice.net/2008/12/16/cascade-delete-in-entity-framework/comment-page-1/#comment-158</link>
		<dc:creator>Todd</dc:creator>
		<pubDate>Wed, 25 Feb 2009 21:31:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.codepolice.net/?p=93#comment-158</guid>
		<description>Thanks for blogging this!  You just saved me from a huge amount of frustration.</description>
		<content:encoded><![CDATA[<p>Thanks for blogging this!  You just saved me from a huge amount of frustration.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->