<?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: Double many-to-one?</title>
	<atom:link href="http://jasondentler.com/blog/2009/08/double-many-to-one/feed/" rel="self" type="application/rss+xml" />
	<link>http://jasondentler.com/blog/2009/08/double-many-to-one/</link>
	<description>I&#039;m just here for the code</description>
	<lastBuildDate>Mon, 06 Sep 2010 12:21:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tuna Toksoz</title>
		<link>http://jasondentler.com/blog/2009/08/double-many-to-one/comment-page-1/#comment-113</link>
		<dc:creator>Tuna Toksoz</dc:creator>
		<pubDate>Fri, 21 Aug 2009 09:56:44 +0000</pubDate>
		<guid isPermaLink="false">http://jasondentler.com/blog/?p=303#comment-113</guid>
		<description>If I detail the situation, even if we know the id&#039;s, we will anyway have to insert two records into database in 2 insert statemetns.

INSERT INTO &quot;Lens&quot; (Monocle_id, ID) VALUES (@p0, @p1); @p0 = &#039;&#039;, @p1 = &#039;f6f37089-a66b-4007-b732-9c6b008d1448&#039;
INSERT INTO &quot;Monocle&quot; (Lens_id, ID) VALUES (@p0, @p1); @p0 = &#039;f6f37089-a66b-4007-b732-9c6b008d1448&#039;, @p1 = &#039;bb2879f6-d27a-4eb0-8bf0-9c6b008d143b&#039;

If we say p0=something and this something doesn&#039;t exist in Monocle table, we&#039;ll run into trouble with FK violation exception. This is why we can&#039;t make the both sides not-null, too.</description>
		<content:encoded><![CDATA[<p>If I detail the situation, even if we know the id&#8217;s, we will anyway have to insert two records into database in 2 insert statemetns.</p>
<p>INSERT INTO &#8220;Lens&#8221; (Monocle_id, ID) VALUES (@p0, @p1); @p0 = &#8221;, @p1 = &#8216;f6f37089-a66b-4007-b732-9c6b008d1448&#8242;<br />
INSERT INTO &#8220;Monocle&#8221; (Lens_id, ID) VALUES (@p0, @p1); @p0 = &#8216;f6f37089-a66b-4007-b732-9c6b008d1448&#8242;, @p1 = &#8216;bb2879f6-d27a-4eb0-8bf0-9c6b008d143b&#8217;</p>
<p>If we say p0=something and this something doesn&#8217;t exist in Monocle table, we&#8217;ll run into trouble with FK violation exception. This is why we can&#8217;t make the both sides not-null, too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://jasondentler.com/blog/2009/08/double-many-to-one/comment-page-1/#comment-103</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 20 Aug 2009 18:30:59 +0000</pubDate>
		<guid isPermaLink="false">http://jasondentler.com/blog/?p=303#comment-103</guid>
		<description>This is as good as it gets. Tuna figured out why it wasn&#039;t possible to eliminate the update. Thanks!

http://twitter.com/tehlike/statuses/3431907077</description>
		<content:encoded><![CDATA[<p>This is as good as it gets. Tuna figured out why it wasn&#8217;t possible to eliminate the update. Thanks!</p>
<p><a href="http://twitter.com/tehlike/statuses/3431907077" rel="nofollow">http://twitter.com/tehlike/statuses/3431907077</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
