<?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: 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: LINQ to SQL, Entity Framework, .NET Security...</description>
	<lastBuildDate>Tue, 09 Mar 2010 16:19:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: David DeWinter</title>
		<link>http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/comment-page-1/#comment-21676</link>
		<dc:creator>David DeWinter</dc:creator>
		<pubDate>Tue, 09 Mar 2010 16:19:28 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-21676</guid>
		<description>Thanks for the feedback, Mark. When I have some spare time I will do some work to update this template for VS2010 so it will work with both EFv4 and EFv1 models. Good to know that I won&#039;t need to do much. :)</description>
		<content:encoded><![CDATA[<p>Thanks for the feedback, Mark. When I have some spare time I will do some work to update this template for VS2010 so it will work with both EFv4 and EFv1 models. Good to know that I won&#8217;t need to do much. <img src='http://blogs.rev-net.com/ddewinter/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark L</title>
		<link>http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/comment-page-1/#comment-21670</link>
		<dc:creator>Mark L</dc:creator>
		<pubDate>Tue, 09 Mar 2010 13:24:10 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-21670</guid>
		<description>I&#039;ve trying to use this in the latest versions of Entity Framework and Visual Studio. Although I haven&#039;t got a complex example to run against and test, It appears to work with VS2010 RC, Entity Framework 4 RC. You just need to update the namespaces...

XNamespace edmxns = &quot;http://schemas.microsoft.com/ado/2008/10/edmx&quot;;
XNamespace edmns = &quot;http://schemas.microsoft.com/ado/2008/09/edm&quot;;
XNamespace ssdlns = &quot;http://schemas.microsoft.com/ado/2009/02/edm/ssdl&quot;;

Thanks for this useful template</description>
		<content:encoded><![CDATA[<p>I&#8217;ve trying to use this in the latest versions of Entity Framework and Visual Studio. Although I haven&#8217;t got a complex example to run against and test, It appears to work with VS2010 RC, Entity Framework 4 RC. You just need to update the namespaces&#8230;</p>
<p>XNamespace edmxns = &#8220;http://schemas.microsoft.com/ado/2008/10/edmx&#8221;;<br />
XNamespace edmns = &#8220;http://schemas.microsoft.com/ado/2008/09/edm&#8221;;<br />
XNamespace ssdlns = &#8220;http://schemas.microsoft.com/ado/2009/02/edm/ssdl&#8221;;</p>
<p>Thanks for this useful template</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/comment-page-1/#comment-20197</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 16 Feb 2010 00:35:34 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-20197</guid>
		<description>to David DeWinter

Hi David. 
Thanks for such work, really saving a lot of time.

In VS 2008 sql Generation completed successfully! 

But bugs when running your template under VS 2010 Beta 2

Soft:
Visual Studio 2010 Beta 2
T4 installed using VS Extension Manager

INPUT:
1)Generated model
2)Removed sysdiagrams 
3)Rurning EntitySprocsb3.tt

OUTPUT
1) EntitySprocsb3.sql only 13 code lines:
&quot;-- 
--     This code was generated by a tool.
--
--     Changes to this file may cause incorrect behavior and will be lost if
--     the code is regenerated.
-- 
--------------------------------------------------------------------------------
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- Creating stored procedures for c:\Development\Web\Proj\Proj.DA\ProjModel.edmx.
&quot;

2) Exception:
Error	1	Running transformation: System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.VisualStudio.TextTemplating425D0478749DEE8F4609FD50EA6C6F45.GeneratedTextTransformation.d__3.MoveNext() in c:\Development\Web\Proj\Proj.DA\EntitySprocsb3.tt:line 463
   at Microsoft.VisualStudio.TextTemplating425D0478749DEE8F4609FD50EA6C6F45.GeneratedTextTransformation.TransformText() in c:\Development\Web\Proj\Proj.DA\EntitySprocsb3.tt:line 89
   at Microsoft.VisualStudio.TextTemplating.TransformationRunner.RunTransformation(TemplateProcessingSession session, String source, ITextTemplatingEngineHost host, String&amp; result)		1	1	


Going to install VS 2010 RC. Give you feed back after.

Regards 
Alex</description>
		<content:encoded><![CDATA[<p>to David DeWinter</p>
<p>Hi David.<br />
Thanks for such work, really saving a lot of time.</p>
<p>In VS 2008 sql Generation completed successfully! </p>
<p>But bugs when running your template under VS 2010 Beta 2</p>
<p>Soft:<br />
Visual Studio 2010 Beta 2<br />
T4 installed using VS Extension Manager</p>
<p>INPUT:<br />
1)Generated model<br />
2)Removed sysdiagrams<br />
3)Rurning EntitySprocsb3.tt</p>
<p>OUTPUT<br />
1) EntitySprocsb3.sql only 13 code lines:<br />
&#8220;&#8211;<br />
&#8211;     This code was generated by a tool.<br />
&#8211;<br />
&#8211;     Changes to this file may cause incorrect behavior and will be lost if<br />
&#8211;     the code is regenerated.<br />
&#8211;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
SET ANSI_NULLS ON<br />
GO<br />
SET QUOTED_IDENTIFIER ON<br />
GO<br />
&#8211; Creating stored procedures for c:\Development\Web\Proj\Proj.DA\ProjModel.edmx.<br />
&#8221;</p>
<p>2) Exception:<br />
Error	1	Running transformation: System.NullReferenceException: Object reference not set to an instance of an object.<br />
   at Microsoft.VisualStudio.TextTemplating425D0478749DEE8F4609FD50EA6C6F45.GeneratedTextTransformation.d__3.MoveNext() in c:\Development\Web\Proj\Proj.DA\EntitySprocsb3.tt:line 463<br />
   at Microsoft.VisualStudio.TextTemplating425D0478749DEE8F4609FD50EA6C6F45.GeneratedTextTransformation.TransformText() in c:\Development\Web\Proj\Proj.DA\EntitySprocsb3.tt:line 89<br />
   at Microsoft.VisualStudio.TextTemplating.TransformationRunner.RunTransformation(TemplateProcessingSession session, String source, ITextTemplatingEngineHost host, String&amp; result)		1	1	</p>
<p>Going to install VS 2010 RC. Give you feed back after.</p>
<p>Regards<br />
Alex</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-page-1/#comment-16654</link>
		<dc:creator>David DeWinter</dc:creator>
		<pubDate>Thu, 07 Jan 2010 03:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-16654</guid>
		<description>Hi Ronald,

Thanks for the feedback about timestamp and SQL 2008. Did you happen to make the fix for it in the template? If so, I&#039;d love to integrate the fix back into the download. If you contact me via the &lt;a href=&quot;http://blogs.rev-net.com/ddewinter/contact/&quot; rel=&quot;nofollow&quot;&gt;contact form&lt;/a&gt;, then I can repost it.

David</description>
		<content:encoded><![CDATA[<p>Hi Ronald,</p>
<p>Thanks for the feedback about timestamp and SQL 2008. Did you happen to make the fix for it in the template? If so, I&#8217;d love to integrate the fix back into the download. If you contact me via the <a href="http://blogs.rev-net.com/ddewinter/contact/" rel="nofollow">contact form</a>, then I can repost it.</p>
<p>David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronald Widha</title>
		<link>http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/comment-page-1/#comment-16431</link>
		<dc:creator>Ronald Widha</dc:creator>
		<pubDate>Mon, 04 Jan 2010 11:54:26 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-16431</guid>
		<description>Just want to quickly comment that I tried running it against SQL Server 2008 and it works beautifully.
The issue that I found is, it generates param for timestamp, which will cause an error.
Also, the workflow seems a little bit convoluted, i.e:
1. create model
2. generate strored proc
3. update model with the new stored proc

Thanks</description>
		<content:encoded><![CDATA[<p>Just want to quickly comment that I tried running it against SQL Server 2008 and it works beautifully.<br />
The issue that I found is, it generates param for timestamp, which will cause an error.<br />
Also, the workflow seems a little bit convoluted, i.e:<br />
1. create model<br />
2. generate strored proc<br />
3. update model with the new stored proc</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronald Widha</title>
		<link>http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/comment-page-1/#comment-16430</link>
		<dc:creator>Ronald Widha</dc:creator>
		<pubDate>Mon, 04 Jan 2010 11:30:35 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-16430</guid>
		<description>When you say, it only works with SQL Server 2005, do you mean the template won&#039;t work with SQL Server 2008?</description>
		<content:encoded><![CDATA[<p>When you say, it only works with SQL Server 2005, do you mean the template won&#8217;t work with SQL Server 2008?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sys</title>
		<link>http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/comment-page-1/#comment-14423</link>
		<dc:creator>Sys</dc:creator>
		<pubDate>Wed, 09 Dec 2009 16:43:02 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-14423</guid>
		<description>Could anyone provide some answer to my previous post?</description>
		<content:encoded><![CDATA[<p>Could anyone provide some answer to my previous post?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sys</title>
		<link>http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/comment-page-1/#comment-14180</link>
		<dc:creator>Sys</dc:creator>
		<pubDate>Mon, 07 Dec 2009 07:55:28 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-14180</guid>
		<description>Yes, thanks. Another question, i have a many-to-many relationship (customer, customer_address, address) and the generated sp for customer_address has originalCustomerID and originalAddressID fields. How do i map them in EF?</description>
		<content:encoded><![CDATA[<p>Yes, thanks. Another question, i have a many-to-many relationship (customer, customer_address, address) and the generated sp for customer_address has originalCustomerID and originalAddressID fields. How do i map them in EF?</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-page-1/#comment-13924</link>
		<dc:creator>David DeWinter</dc:creator>
		<pubDate>Fri, 04 Dec 2009 19:07:18 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-13924</guid>
		<description>CHAR columns cannot be IDENTITY columns, so the template will not generate them for you. If the server is generating the CHAR column for you, though, the template should select that value so you can send it to EF. Does that help?</description>
		<content:encoded><![CDATA[<p>CHAR columns cannot be IDENTITY columns, so the template will not generate them for you. If the server is generating the CHAR column for you, though, the template should select that value so you can send it to EF. Does that help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sys</title>
		<link>http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/comment-page-1/#comment-13913</link>
		<dc:creator>Sys</dc:creator>
		<pubDate>Fri, 04 Dec 2009 15:48:07 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-13913</guid>
		<description>Noticed that “select SCOPE_IDENTITY() as [identityColumn]” were not generated for tables where my keys are char based. How should i create the inser sproc for this case?</description>
		<content:encoded><![CDATA[<p>Noticed that “select SCOPE_IDENTITY() as [identityColumn]” were not generated for tables where my keys are char based. How should i create the inser sproc for this case?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
