﻿<?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: .Net 4.0 Beta 2 Entity Framework &#8211; Many To One and POCO / INSERT statement conflicted with the FOREIGN KEY constraint issue</title>
	<atom:link href="http://byatool.com/lessons/net-4-0-beta-2-entity-framework-many-to-one-and-poco-insert-statement-conflicted-with-the-foreign-key-constraint-issue/feed/" rel="self" type="application/rss+xml" />
	<link>http://byatool.com/lessons/net-4-0-beta-2-entity-framework-many-to-one-and-poco-insert-statement-conflicted-with-the-foreign-key-constraint-issue/</link>
	<description>This is my recorded stumbling through ASP.Net, Framework 3.5, C# 3.0, Ajax, Javascript, and Love.  Stay, learn, destroy.  It's your life.</description>
	<lastBuildDate>Wed, 27 Oct 2010 11:58:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Sean</title>
		<link>http://byatool.com/lessons/net-4-0-beta-2-entity-framework-many-to-one-and-poco-insert-statement-conflicted-with-the-foreign-key-constraint-issue/comment-page-1/#comment-9817</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Tue, 24 Aug 2010 14:05:10 +0000</pubDate>
		<guid isPermaLink="false">http://byatool.com/?p=1036#comment-9817</guid>
		<description>Well I&#039;ve heard such things in american movies and as we all know, american movies always paint a perfect picture of other cultures.  So you sir, are in the wrong.</description>
		<content:encoded><![CDATA[<p>Well I&#8217;ve heard such things in american movies and as we all know, american movies always paint a perfect picture of other cultures.  So you sir, are in the wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://byatool.com/lessons/net-4-0-beta-2-entity-framework-many-to-one-and-poco-insert-statement-conflicted-with-the-foreign-key-constraint-issue/comment-page-1/#comment-9812</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Tue, 24 Aug 2010 05:38:56 +0000</pubDate>
		<guid isPermaLink="false">http://byatool.com/?p=1036#comment-9812</guid>
		<description>Dude, the English don&#039;t say Zed for Zero. Us Australians and the English say &#039;zero&#039; or &#039;nought&#039;, just as you do (if you say nought that is). We say &#039;zed&#039; for the last letter of the alphabet. That shouldn&#039;t be too hard to work out from the context. Just sayin&#039;</description>
		<content:encoded><![CDATA[<p>Dude, the English don&#8217;t say Zed for Zero. Us Australians and the English say &#8216;zero&#8217; or &#8216;nought&#8217;, just as you do (if you say nought that is). We say &#8216;zed&#8217; for the last letter of the alphabet. That shouldn&#8217;t be too hard to work out from the context. Just sayin&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://byatool.com/lessons/net-4-0-beta-2-entity-framework-many-to-one-and-poco-insert-statement-conflicted-with-the-foreign-key-constraint-issue/comment-page-1/#comment-6121</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Tue, 22 Dec 2009 16:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://byatool.com/?p=1036#comment-6121</guid>
		<description>Welcome to my world.</description>
		<content:encoded><![CDATA[<p>Welcome to my world.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kdawg</title>
		<link>http://byatool.com/lessons/net-4-0-beta-2-entity-framework-many-to-one-and-poco-insert-statement-conflicted-with-the-foreign-key-constraint-issue/comment-page-1/#comment-6120</link>
		<dc:creator>kdawg</dc:creator>
		<pubDate>Tue, 22 Dec 2009 16:32:40 +0000</pubDate>
		<guid isPermaLink="false">http://byatool.com/?p=1036#comment-6120</guid>
		<description>i&#039;m still not sure how the ID gets properly updated correctly based on ...After... instead of ...Before... (and actually, I have no idea for sure if it was the source of my problem -- it&#039;s such a specific case with so many environment variables, it&#039;s ridiculous), BUT i did notice that using ...After... instead of ...Before... forces the POCO to be a straight POCO, rather than using EF proxies for change tracking, if enabled.

Which makes sense, if you save after changes, then there should be no proxies to keep track of anything.

EF4 is really cool, but it&#039;s required a fair amount of digging around and figuring things out on my own so far.  then again, it is in beta2, so maybe i should lay off a bit... =)

thanks for the help, btw!</description>
		<content:encoded><![CDATA[<p>i&#8217;m still not sure how the ID gets properly updated correctly based on &#8230;After&#8230; instead of &#8230;Before&#8230; (and actually, I have no idea for sure if it was the source of my problem &#8212; it&#8217;s such a specific case with so many environment variables, it&#8217;s ridiculous), BUT i did notice that using &#8230;After&#8230; instead of &#8230;Before&#8230; forces the POCO to be a straight POCO, rather than using EF proxies for change tracking, if enabled.</p>
<p>Which makes sense, if you save after changes, then there should be no proxies to keep track of anything.</p>
<p>EF4 is really cool, but it&#8217;s required a fair amount of digging around and figuring things out on my own so far.  then again, it is in beta2, so maybe i should lay off a bit&#8230; =)</p>
<p>thanks for the help, btw!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://byatool.com/lessons/net-4-0-beta-2-entity-framework-many-to-one-and-poco-insert-statement-conflicted-with-the-foreign-key-constraint-issue/comment-page-1/#comment-6114</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Tue, 22 Dec 2009 02:46:59 +0000</pubDate>
		<guid isPermaLink="false">http://byatool.com/?p=1036#comment-6114</guid>
		<description>Pretty sure I tried DetectChangesBeforeSave in fact because it seems oddly logical.  Sometimes I find Entity Framework like a Mac, do what you think it logical and then try the exact opposite.</description>
		<content:encoded><![CDATA[<p>Pretty sure I tried DetectChangesBeforeSave in fact because it seems oddly logical.  Sometimes I find Entity Framework like a Mac, do what you think it logical and then try the exact opposite.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kdawg</title>
		<link>http://byatool.com/lessons/net-4-0-beta-2-entity-framework-many-to-one-and-poco-insert-statement-conflicted-with-the-foreign-key-constraint-issue/comment-page-1/#comment-6112</link>
		<dc:creator>kdawg</dc:creator>
		<pubDate>Tue, 22 Dec 2009 00:00:23 +0000</pubDate>
		<guid isPermaLink="false">http://byatool.com/?p=1036#comment-6112</guid>
		<description>it worked with AcceptAllChangesAfterSave option instead of DetectChangesBeforeSave?  weird.  i&#039;m chasing down something similar, am curious to see if this fixes my issue.</description>
		<content:encoded><![CDATA[<p>it worked with AcceptAllChangesAfterSave option instead of DetectChangesBeforeSave?  weird.  i&#8217;m chasing down something similar, am curious to see if this fixes my issue.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

