<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Using T4 Templates to generate EF classes</title><link>http://blogs.msdn.com/dsimmons/archive/2008/10/27/using-t4-templates-to-generate-ef-classes.aspx</link><description>Spurred on both by the success of Damien Guard in using T4 to generate Linq to SQL code and of Jeff Reed from the EF team who built a prototype for using T4 to generate EF code, I recently hacked something up that makes it fairly easy to use T4 to generate</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Using T4 Templates to generate EF classes</title><link>http://blogs.msdn.com/dsimmons/archive/2008/10/27/using-t4-templates-to-generate-ef-classes.aspx#9021620</link><pubDate>Wed, 29 Oct 2008 07:29:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9021620</guid><dc:creator>Artem Govorov</dc:creator><description>&lt;p&gt;Hi Danny,&lt;/p&gt;
&lt;p&gt;very interesting technique, I may consider using it for one of my projects to override some designer code generation issues. &lt;/p&gt;
&lt;p&gt;One possible problem function imports. I've found them in your ToDo list, but when I tried to implement them - I found that System.Data.Metadata.Edm.EntityContainer does not expose FunctionImports (it has them but as internal property).&lt;/p&gt;
</description></item><item><title>re: Using T4 Templates to generate EF classes</title><link>http://blogs.msdn.com/dsimmons/archive/2008/10/27/using-t4-templates-to-generate-ef-classes.aspx#9027197</link><pubDate>Fri, 31 Oct 2008 22:41:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9027197</guid><dc:creator>dsimmons@microsoft.com</dc:creator><description>&lt;p&gt;Artem,&lt;/p&gt;
&lt;p&gt;Sorry for not responding sooner. &amp;nbsp;The basic answer for this will be to parse the CSDL XML file directly and get the information from there. &amp;nbsp;It's nice when we can use the metadata APIs to get the info easily, but there are ways around things when they are misisng.&lt;/p&gt;
&lt;p&gt;- Danny&lt;/p&gt;
</description></item><item><title>re: Using T4 Templates to generate EF classes</title><link>http://blogs.msdn.com/dsimmons/archive/2008/10/27/using-t4-templates-to-generate-ef-classes.aspx#9057060</link><pubDate>Mon, 10 Nov 2008 12:08:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9057060</guid><dc:creator>mli</dc:creator><description>&lt;p&gt;Hi Danny,&lt;/p&gt;
&lt;p&gt;Very interesting approach, and for sure easier than hooking into the original code generation process.&lt;/p&gt;
&lt;p&gt;I was trying to make this .tt file dependent upon the .edmx file, as to automatically regenerate when saving the .edmx file. No success however.&lt;/p&gt;
&lt;p&gt;Can this be done you think?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Michel.&lt;/p&gt;
</description></item><item><title>re: Using T4 Templates to generate EF classes</title><link>http://blogs.msdn.com/dsimmons/archive/2008/10/27/using-t4-templates-to-generate-ef-classes.aspx#9059017</link><pubDate>Tue, 11 Nov 2008 04:09:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9059017</guid><dc:creator>dsimmons@microsoft.com</dc:creator><description>&lt;p&gt;@Michel,&lt;/p&gt;
&lt;p&gt;There's not a real simple way to accomplish this. &amp;nbsp;The standard T4 mechanism is to just manually generate. &amp;nbsp;We're looking into some ideas to make this more automatic (but still giving control over whether or not you want it to happen all the time) in VS2010, but I don't yet have a good suggestion for you to use with VS2008sp1. &amp;nbsp;If I come up with something, I'll post it to my blog.&lt;/p&gt;
&lt;p&gt;- Danny&lt;/p&gt;
</description></item><item><title>Fun with T4 templates and Dynamic Data</title><link>http://blogs.msdn.com/dsimmons/archive/2008/10/27/using-t4-templates-to-generate-ef-classes.aspx#9145732</link><pubDate>Thu, 27 Nov 2008 06:18:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9145732</guid><dc:creator>David Ebbo's blog</dc:creator><description>&lt;p&gt;T4 templates have been a pretty popular topic lately.&amp;amp;#160; If you have no idea what they are, don’t&lt;/p&gt;
</description></item><item><title>Entity Classes &amp; Architecture Patterns</title><link>http://blogs.msdn.com/dsimmons/archive/2008/10/27/using-t4-templates-to-generate-ef-classes.aspx#9298885</link><pubDate>Thu, 08 Jan 2009 19:48:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9298885</guid><dc:creator>system.data.objects dev guy</dc:creator><description>&lt;p&gt;Part of the Entity Framework FAQ . 2. Architecture and Patterns 2.1. Does Entity Framework have support&lt;/p&gt;
</description></item><item><title>ADO.NET Data Services Advanced Topics - Custom proxy based on T4 templates</title><link>http://blogs.msdn.com/dsimmons/archive/2008/10/27/using-t4-templates-to-generate-ef-classes.aspx#9491060</link><pubDate>Thu, 19 Mar 2009 23:24:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9491060</guid><dc:creator>Community Blogs</dc:creator><description>&lt;p&gt;1. Introduction This is the first article of my series about deep dive into ADO.NET Data Services. In&lt;/p&gt;
</description></item><item><title>T4 POCO Templates for L2S and EF</title><link>http://blogs.msdn.com/dsimmons/archive/2008/10/27/using-t4-templates-to-generate-ef-classes.aspx#9641254</link><pubDate>Tue, 26 May 2009 12:52:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9641254</guid><dc:creator>Web开发技术</dc:creator><description>&lt;p&gt;In my MSDN Magazine article on SOA Data Access I recommend exposing Data Transfer Objects (DTOs) from&lt;/p&gt;
</description></item><item><title>T4 POCO Templates for L2S and EF</title><link>http://blogs.msdn.com/dsimmons/archive/2008/10/27/using-t4-templates-to-generate-ef-classes.aspx#9796016</link><pubDate>Sun, 21 Jun 2009 21:45:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9796016</guid><dc:creator>VS2010学习</dc:creator><description>&lt;p&gt;In my MSDN Magazine article on SOA Data Access I recommend exposing Data Transfer Objects (DTOs) from&lt;/p&gt;
</description></item></channel></rss>