<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Code Generation with Visual Studio Templates</title>
	<link>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/</link>
	<description>Absolutes never work</description>
	<pubDate>Wed, 08 Sep 2010 21:21:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Mehmet</title>
		<link>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/#comment-3204</link>
		<dc:creator>Mehmet</dc:creator>
		<pubDate>Fri, 06 Aug 2010 08:19:20 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/#comment-3204</guid>
		<description>Hi Oleg,
when I change projectitem from  to  ,cs file created but $ parameters ($rootnamespace$,..)  didn't replaced, when I change projectitem from 
      Class.tt
    
 to 
      Class.cs
     ,
visual studio (2010) display error message that could not find file ...Class.cs

Mehmet</description>
		<content:encoded><![CDATA[<p>Hi Oleg,<br />
when I change projectitem from  to  ,cs file created but $ parameters ($rootnamespace$,..)  didn&#8217;t replaced, when I change projectitem from<br />
      Class.tt</p>
<p> to<br />
      Class.cs<br />
     ,<br />
visual studio (2010) display error message that could not find file &#8230;Class.cs</p>
<p>Mehmet</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oleg Sych</title>
		<link>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/#comment-3202</link>
		<dc:creator>Oleg Sych</dc:creator>
		<pubDate>Thu, 05 Aug 2010 14:47:20 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/#comment-3202</guid>
		<description>Mehmet, 

Yes, you can. Simply make your ProjectItem a .cs file instead of a .tt. 

Oleg</description>
		<content:encoded><![CDATA[<p>Mehmet, </p>
<p>Yes, you can. Simply make your ProjectItem a .cs file instead of a .tt. </p>
<p>Oleg</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mehmet</title>
		<link>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/#comment-3201</link>
		<dc:creator>Mehmet</dc:creator>
		<pubDate>Thu, 05 Aug 2010 14:23:33 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/#comment-3201</guid>
		<description>Hi Oleg,

Can we generate only cs file. This example is showed generating tt file. 

Mehmet.</description>
		<content:encoded><![CDATA[<p>Hi Oleg,</p>
<p>Can we generate only cs file. This example is showed generating tt file. </p>
<p>Mehmet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oleg Sych</title>
		<link>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/#comment-2435</link>
		<dc:creator>Oleg Sych</dc:creator>
		<pubDate>Fri, 13 Nov 2009 00:11:39 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/#comment-2435</guid>
		<description>T4 itself doesn't have something similar to schema explorer in CodeSmith. However, you can use a number of existing .NET APIs to access database metadata. For example, if you are using SQL Server you can use &lt;a href="http://msdn.microsoft.com/en-us/library/ms162169.aspx" rel="nofollow"&gt;SMO&lt;/a&gt;. Here is an &lt;a href="http://www.olegsych.com/2008/09/t4-tutorial-creatating-your-first-code-generator/" rel="nofollow"&gt;example&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>T4 itself doesn&#8217;t have something similar to schema explorer in CodeSmith. However, you can use a number of existing .NET APIs to access database metadata. For example, if you are using SQL Server you can use <a href="http://msdn.microsoft.com/en-us/library/ms162169.aspx" rel="nofollow">SMO</a>. Here is an <a href="http://www.olegsych.com/2008/09/t4-tutorial-creatating-your-first-code-generator/" rel="nofollow">example</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sphengle</title>
		<link>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/#comment-2434</link>
		<dc:creator>Sphengle</dc:creator>
		<pubDate>Thu, 12 Nov 2009 15:36:34 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/#comment-2434</guid>
		<description>Excellent articles on T4!

I don't suppose you know if there is a T4 equivalent of CodeSmith's SchemaExplorer.  If there was something like this then T4 would be perfect.

Sphengle</description>
		<content:encoded><![CDATA[<p>Excellent articles on T4!</p>
<p>I don&#8217;t suppose you know if there is a T4 equivalent of CodeSmith&#8217;s SchemaExplorer.  If there was something like this then T4 would be perfect.</p>
<p>Sphengle</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oleg Sych</title>
		<link>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/#comment-2261</link>
		<dc:creator>Oleg Sych</dc:creator>
		<pubDate>Wed, 16 Sep 2009 22:20:24 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/#comment-2261</guid>
		<description>Ashley,

I haven't dealt with this particular problem myself. The approach with re-hydrating a ConfigurationSection sounds promising. 

Oleg</description>
		<content:encoded><![CDATA[<p>Ashley,</p>
<p>I haven&#8217;t dealt with this particular problem myself. The approach with re-hydrating a ConfigurationSection sounds promising. </p>
<p>Oleg</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashley Brener</title>
		<link>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/#comment-2260</link>
		<dc:creator>Ashley Brener</dc:creator>
		<pubDate>Wed, 16 Sep 2009 17:02:37 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/#comment-2260</guid>
		<description>...further to the above, my next idea is to read in the App.config as XML and deserialize the configSection into my custom config object which inherits from ConfigurationSection.

Hmmmm.....</description>
		<content:encoded><![CDATA[<p>&#8230;further to the above, my next idea is to read in the App.config as XML and deserialize the configSection into my custom config object which inherits from ConfigurationSection.</p>
<p>Hmmmm&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashley Brener</title>
		<link>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/#comment-2259</link>
		<dc:creator>Ashley Brener</dc:creator>
		<pubDate>Wed, 16 Sep 2009 16:59:48 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/#comment-2259</guid>
		<description>Hi Oleg,

I've been following your articles for some time now and have started to get accustomed to using T4 templates to generate code. I am especially engaged in a massive project whereby I'm bolting on a massive add-on to SubSonic 3 which provides caching for tables registered for SqlCacheDependency dramatically minimising database calls on tables with data that does not frequently change. On top of that, business objects are automatically customised with more useful properties which can be serialized the way you want using a custom serializer. 

My problem is that my customizeable parameters are stored in the App.config as a configSection. Using T4, I can get all of the general Configuration settings using ConfigurationManager.OpenMappedExeconfiguration() but the configSections are not available. In my test console app, I can get the configuration settings and configSections using ConfigurationManager.OpenExeConfiguration() but it obviously won't get access to the app.config in the T4 since there is no .exe file.

Have you encountered this kind of problem before or are you able to provide some insight on a solution?</description>
		<content:encoded><![CDATA[<p>Hi Oleg,</p>
<p>I&#8217;ve been following your articles for some time now and have started to get accustomed to using T4 templates to generate code. I am especially engaged in a massive project whereby I&#8217;m bolting on a massive add-on to SubSonic 3 which provides caching for tables registered for SqlCacheDependency dramatically minimising database calls on tables with data that does not frequently change. On top of that, business objects are automatically customised with more useful properties which can be serialized the way you want using a custom serializer. </p>
<p>My problem is that my customizeable parameters are stored in the App.config as a configSection. Using T4, I can get all of the general Configuration settings using ConfigurationManager.OpenMappedExeconfiguration() but the configSections are not available. In my test console app, I can get the configuration settings and configSections using ConfigurationManager.OpenExeConfiguration() but it obviously won&#8217;t get access to the app.config in the T4 since there is no .exe file.</p>
<p>Have you encountered this kind of problem before or are you able to provide some insight on a solution?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emir Treviño</title>
		<link>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/#comment-247</link>
		<dc:creator>Emir Treviño</dc:creator>
		<pubDate>Fri, 04 Jul 2008 20:43:54 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/#comment-247</guid>
		<description>You can generate code from Entity FRamewok Model with this tool:

http://www.codeplex.com/sfs

You can try please?</description>
		<content:encoded><![CDATA[<p>You can generate code from Entity FRamewok Model with this tool:</p>
<p><a href="http://www.codeplex.com/sfs" rel="nofollow">http://www.codeplex.com/sfs</a></p>
<p>You can try please?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GarethJ's WebLog : A rash of bloggers</title>
		<link>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/#comment-183</link>
		<dc:creator>GarethJ's WebLog : A rash of bloggers</dc:creator>
		<pubDate>Wed, 14 May 2008 04:34:21 +0000</pubDate>
		<guid>http://www.olegsych.com/2008/03/code-generation-with-visual-studio-templates/#comment-183</guid>
		<description>[...] An article about creating a VS template for T4 templates [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] An article about creating a VS template for T4 templates [&#8230;]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
