<?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: Subsonic : Specify the tables you really need !</title>
	<atom:link href="http://www.sambeauvois.be/blog/2010/06/subsonic-specify-the-tables-you-really-need/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sambeauvois.be/blog/2010/06/subsonic-specify-the-tables-you-really-need/</link>
	<description>general dev, .net and other stuff</description>
	<lastBuildDate>Tue, 31 Jan 2012 09:28:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Sam Beauvois</title>
		<link>http://www.sambeauvois.be/blog/2010/06/subsonic-specify-the-tables-you-really-need/comment-page-1/#comment-816</link>
		<dc:creator>Sam Beauvois</dc:creator>
		<pubDate>Mon, 20 Dec 2010 19:24:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.sambeauvois.be/blog/?p=435#comment-816</guid>
		<description>For now I never really played with subsonic and the stored procs


I think that adding the same logic than for tables for the stored procedures in the Settings.ttinclude file

I mean creating a method 

bool IsStoredProcOkToBeIncluded(string storedProcName)
{
// include your check logic
}

Then in the StoredProcedures.tt file adding a condition
if(IsStoredProcOkToBeIncluded(sp.Name))

so :

&lt;#  foreach(var sp in sps){
if(IsStoredProcOkToBeIncluded(sp.Name)) { #&gt;
   // ...
&lt;#  }
}#&gt;</description>
		<content:encoded><![CDATA[<p>For now I never really played with subsonic and the stored procs</p>
<p>I think that adding the same logic than for tables for the stored procedures in the Settings.ttinclude file</p>
<p>I mean creating a method </p>
<p>bool IsStoredProcOkToBeIncluded(string storedProcName)<br />
{<br />
// include your check logic<br />
}</p>
<p>Then in the StoredProcedures.tt file adding a condition<br />
if(IsStoredProcOkToBeIncluded(sp.Name))</p>
<p>so :</p>
<p>< #  foreach(var sp in sps){<br />
if(IsStoredProcOkToBeIncluded(sp.Name)) { #><br />
   // &#8230;<br />
< #  }<br />
}#></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darrin</title>
		<link>http://www.sambeauvois.be/blog/2010/06/subsonic-specify-the-tables-you-really-need/comment-page-1/#comment-815</link>
		<dc:creator>Darrin</dc:creator>
		<pubDate>Mon, 20 Dec 2010 02:56:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.sambeauvois.be/blog/?p=435#comment-815</guid>
		<description>This is great and exactly what I was looking for. Thanks!! 

Do you know if this is as easy to implement for Stored Procedure code generation also? 

I&#039;m sure I can figure it out but I thought if you had already dealt with this it would be great too!

Thanks again!</description>
		<content:encoded><![CDATA[<p>This is great and exactly what I was looking for. Thanks!! </p>
<p>Do you know if this is as easy to implement for Stored Procedure code generation also? </p>
<p>I&#8217;m sure I can figure it out but I thought if you had already dealt with this it would be great too!</p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: I want my foreign key to be mapped to a single object and not a collection &#171; Sam Beauvois</title>
		<link>http://www.sambeauvois.be/blog/2010/06/subsonic-specify-the-tables-you-really-need/comment-page-1/#comment-478</link>
		<dc:creator>I want my foreign key to be mapped to a single object and not a collection &#171; Sam Beauvois</dc:creator>
		<pubDate>Tue, 15 Jun 2010 12:11:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.sambeauvois.be/blog/?p=435#comment-478</guid>
		<description>[...] we are on, we check if the access code to the table has to be generated (see my previous article : Subsonic : Specify the tables you really need ! [...]</description>
		<content:encoded><![CDATA[<p>[...] we are on, we check if the access code to the table has to be generated (see my previous article : Subsonic : Specify the tables you really need ! [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

