<?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"
	>
<channel>
	<title>Comments on: Entity Framework Stored Procedure Generation</title>
	<atom:link href="http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/</link>
	<description>A Developer's Melting Pot</description>
	<pubDate>Sun, 07 Sep 2008 14:25:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: PeterDer</title>
		<link>http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/#comment-665</link>
		<dc:creator>PeterDer</dc:creator>
		<pubDate>Thu, 21 Aug 2008 05:14:42 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-665</guid>
		<description>Where did you got that nice syntax coloring from???</description>
		<content:encoded><![CDATA[<p>Where did you got that nice syntax coloring from???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David DeWinter</title>
		<link>http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/#comment-611</link>
		<dc:creator>David DeWinter</dc:creator>
		<pubDate>Mon, 28 Jul 2008 19:10:25 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-611</guid>
		<description>Hello Vitaly,

Thank you for your comments. I re-read the code and noticed that it is not updating any identity columns as you describe.

Can you post the CREATE TABLE script of the table for which the SPs would break?


Thanks!

David</description>
		<content:encoded><![CDATA[<p>Hello Vitaly,</p>
<p>Thank you for your comments. I re-read the code and noticed that it is not updating any identity columns as you describe.</p>
<p>Can you post the CREATE TABLE script of the table for which the SPs would break?</p>
<p>Thanks!</p>
<p>David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vitaly A. Shulgin</title>
		<link>http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/#comment-516</link>
		<dc:creator>Vitaly A. Shulgin</dc:creator>
		<pubDate>Thu, 17 Jul 2008 08:41:10 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-516</guid>
		<description>Thank you for article and T4 template.
I have tested it and found incorrect behaviour on table with IDENTITY column. It generates UPDATE SP wich allow to change value of that column, even it's not possible at SQL-server level. Attemp to call such SP will results to SQL error. Is there something I've missed?</description>
		<content:encoded><![CDATA[<p>Thank you for article and T4 template.<br />
I have tested it and found incorrect behaviour on table with IDENTITY column. It generates UPDATE SP wich allow to change value of that column, even it&#8217;s not possible at SQL-server level. Attemp to call such SP will results to SQL error. Is there something I&#8217;ve missed?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emir Treviño</title>
		<link>http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/#comment-408</link>
		<dc:creator>Emir Treviño</dc:creator>
		<pubDate>Fri, 04 Jul 2008 20:26:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-408</guid>
		<description>please, check my realese about code generation with T4 template from Entity Framework model,

http://www.codeplex.com/sfs</description>
		<content:encoded><![CDATA[<p>please, check my realese about code generation with T4 template from Entity Framework model,</p>
<p><a href="http://www.codeplex.com/sfs" rel="nofollow">http://www.codeplex.com/sfs</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ariful Ambia Noman</title>
		<link>http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/#comment-402</link>
		<dc:creator>Ariful Ambia Noman</dc:creator>
		<pubDate>Thu, 03 Jul 2008 10:40:19 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-402</guid>
		<description>very helpfully article. i like it</description>
		<content:encoded><![CDATA[<p>very helpfully article. i like it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Function Mapping with Inherited Types &#171; Ryan Hauert</title>
		<link>http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/#comment-244</link>
		<dc:creator>Function Mapping with Inherited Types &#171; Ryan Hauert</dc:creator>
		<pubDate>Tue, 20 May 2008 20:07:21 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-244</guid>
		<description>[...] map the entities in the hierarchy to the same three stored procedures, which I generated using the T4 template David DeWinter and I developed.&#160; The Insert, Update, and Delete stored procedures are defined [...]</description>
		<content:encoded><![CDATA[<p>[...] map the entities in the hierarchy to the same three stored procedures, which I generated using the T4 template David DeWinter and I developed.&nbsp; The Insert, Update, and Delete stored procedures are defined [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GarethJ's WebLog : A rash of bloggers</title>
		<link>http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/#comment-242</link>
		<dc:creator>GarethJ's WebLog : A rash of bloggers</dc:creator>
		<pubDate>Wed, 14 May 2008 04:35:02 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-242</guid>
		<description>[...] article on using T4 to generate a complete set of sProcs for the new ADO.Net Entity Framework. It appears that he co-conspired on it with Ryan [...]</description>
		<content:encoded><![CDATA[<p>[...] article on using T4 to generate a complete set of sProcs for the new ADO.Net Entity Framework. It appears that he co-conspired on it with Ryan [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stéphane</title>
		<link>http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/#comment-230</link>
		<dc:creator>Stéphane</dc:creator>
		<pubDate>Fri, 02 May 2008 09:14:55 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-230</guid>
		<description>Working... So NEVER do an insert without a result binding :D, that just doesn't work! (at least not more than 1 time)</description>
		<content:encoded><![CDATA[<p>Working&#8230; So NEVER do an insert without a result binding :D, that just doesn&#8217;t work! (at least not more than 1 time)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stéphane</title>
		<link>http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/#comment-229</link>
		<dc:creator>Stéphane</dc:creator>
		<pubDate>Fri, 02 May 2008 07:59:25 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-229</guid>
		<description>Hi David,

Actually, I think my problem is coming exactly from what you just explained. When I'm inserting a new row, it works the 1st time, on the next insertion, it tells me that there is a conflict, that an object with the same key already exists in the ObjectContext. I knew it could return a value generated by the database, but I didnt know it would populate the object in the ObjectContext!
So appartently, it's mandatory to design the stored procedure that return the key value of the inserted object :)
I go try this right now to confirm!

Thank you !!</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>Actually, I think my problem is coming exactly from what you just explained. When I&#8217;m inserting a new row, it works the 1st time, on the next insertion, it tells me that there is a conflict, that an object with the same key already exists in the ObjectContext. I knew it could return a value generated by the database, but I didnt know it would populate the object in the ObjectContext!<br />
So appartently, it&#8217;s mandatory to design the stored procedure that return the key value of the inserted object <img src='http://blogs.rev-net.com/ddewinter/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> I go try this right now to confirm!</p>
<p>Thank you !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David DeWinter</title>
		<link>http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/#comment-228</link>
		<dc:creator>David DeWinter</dc:creator>
		<pubDate>Thu, 01 May 2008 23:40:52 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-228</guid>
		<description>The reason the insert stored procedure selects information after the insert occurs is to retrieve values that the database generates (e.g. identity columns, computed columns) for use in the application. The stored procedure doesn't return an EntityObject; instead it utilizes the &lt;a href="http://msdn.microsoft.com/en-us/library/bb399203.aspx" rel="nofollow"&gt;ResultBinding&lt;/a&gt; element (search for ResultBinding on the linked page) to map some values to properties in the EntityObject I insert.

Here's an example:

&lt;img src="http://blogs.rev-net.com/ddewinter/wp-content/uploads/2008/05/EDMX Result Binding.jpg" /&gt;

Here, when I insert StyleAttribute into the database, the database generates the StyleAttributeId. When it comes back into my code, StyleAttributeId is populated with what the database generated.

As for your troubles with your stored procedures, you are free to email me at david ---dot--- dewinter ---at--- rev-net ---dot--- com. I'll get back to you as soon as I can. :)</description>
		<content:encoded><![CDATA[<p>The reason the insert stored procedure selects information after the insert occurs is to retrieve values that the database generates (e.g. identity columns, computed columns) for use in the application. The stored procedure doesn&#8217;t return an EntityObject; instead it utilizes the <a href="http://msdn.microsoft.com/en-us/library/bb399203.aspx" rel="nofollow">ResultBinding</a> element (search for ResultBinding on the linked page) to map some values to properties in the EntityObject I insert.</p>
<p>Here&#8217;s an example:</p>
<p><img src="http://blogs.rev-net.com/ddewinter/wp-content/uploads/2008/05/EDMX Result Binding.jpg" /></p>
<p>Here, when I insert StyleAttribute into the database, the database generates the StyleAttributeId. When it comes back into my code, StyleAttributeId is populated with what the database generated.</p>
<p>As for your troubles with your stored procedures, you are free to email me at david &#8212;dot&#8212; dewinter &#8212;at&#8212; rev-net &#8212;dot&#8212; com. I&#8217;ll get back to you as soon as I can. <img src='http://blogs.rev-net.com/ddewinter/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>
