<?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>How to use a T4 template for View Generation</title><link>http://blogs.msdn.com/b/adonet/archive/2008/06/20/how-to-use-a-t4-template-for-view-generation.aspx</link><description>Background 
 To set the stage for this article, do take a look at Exploring the Performance of the ADO.NET Entity Framework - Part 1 to learn more about pre-generating views and how they can reduce the startup time for applications that consume ADO.NET</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How to use a T4 template for View Generation</title><link>http://blogs.msdn.com/b/adonet/archive/2008/06/20/how-to-use-a-t4-template-for-view-generation.aspx#10223289</link><pubDate>Tue, 11 Oct 2011 16:27:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10223289</guid><dc:creator>Jeremy Lundy</dc:creator><description>&lt;p&gt;Same question as Jason, how can we change the template to work like other EF templates where it is re-run whenever the EDMX is saved?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10223289" width="1" height="1"&gt;</description></item><item><title>re: How to use a T4 template for View Generation</title><link>http://blogs.msdn.com/b/adonet/archive/2008/06/20/how-to-use-a-t4-template-for-view-generation.aspx#10198479</link><pubDate>Mon, 22 Aug 2011 14:00:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10198479</guid><dc:creator>Jason Rainwater</dc:creator><description>&lt;p&gt;Is there a way to &amp;quot;run custom tool&amp;quot; from a pre-build event or change the tt to work like other EF tt files where every time you save the edmx file it automatically re-runs this template?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10198479" width="1" height="1"&gt;</description></item><item><title>re: How to use a T4 template for View Generation</title><link>http://blogs.msdn.com/b/adonet/archive/2008/06/20/how-to-use-a-t4-template-for-view-generation.aspx#10166786</link><pubDate>Fri, 20 May 2011 17:14:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10166786</guid><dc:creator>Kevin Happe</dc:creator><description>&lt;p&gt;Startup still seems to be slow. &amp;nbsp;What can I look at to see if the generated views are actually being used?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10166786" width="1" height="1"&gt;</description></item><item><title>re: How to use a T4 template for View Generation</title><link>http://blogs.msdn.com/b/adonet/archive/2008/06/20/how-to-use-a-t4-template-for-view-generation.aspx#10141959</link><pubDate>Wed, 16 Mar 2011 11:42:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10141959</guid><dc:creator>Johnson Programming</dc:creator><description>&lt;p&gt;Setting the generated class&amp;#39; visibility to internal is a workaround to hide the class from sgen.exe. An option for EntityViewGenerator to control the class&amp;#39; visibility would be even better.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10141959" width="1" height="1"&gt;</description></item><item><title>re: How to use a T4 template for View Generation</title><link>http://blogs.msdn.com/b/adonet/archive/2008/06/20/how-to-use-a-t4-template-for-view-generation.aspx#10141606</link><pubDate>Tue, 15 Mar 2011 19:44:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10141606</guid><dc:creator>Johnson Programming</dc:creator><description>&lt;p&gt;When used in an assembly which is then sent to sgen.exe to generate a XmlSerializer assembly, this error occurs in the generated class&amp;#39; instance constructor : &amp;quot;The property or indexer &amp;#39;System.Data.Mapping.EntityViewContainer.ViewCount&amp;#39; cannot be used in this context because the set accessor is inaccessible&amp;quot;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10141606" width="1" height="1"&gt;</description></item><item><title>re: How to use a T4 template for View Generation</title><link>http://blogs.msdn.com/b/adonet/archive/2008/06/20/how-to-use-a-t4-template-for-view-generation.aspx#10138661</link><pubDate>Wed, 09 Mar 2011 14:41:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10138661</guid><dc:creator>Roy</dc:creator><description>&lt;p&gt;Can we download and use the template freely without causing any license issue?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10138661" width="1" height="1"&gt;</description></item><item><title>re: How to use a T4 template for View Generation</title><link>http://blogs.msdn.com/b/adonet/archive/2008/06/20/how-to-use-a-t4-template-for-view-generation.aspx#10113756</link><pubDate>Mon, 10 Jan 2011 16:53:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10113756</guid><dc:creator>Shayne</dc:creator><description>&lt;p&gt;@Terry yes. &amp;nbsp;Just ran against VS2010 .NET 4.0, my ViewCount = 454! Works great.&lt;/p&gt;
&lt;p&gt;@spboyer&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10113756" width="1" height="1"&gt;</description></item><item><title>re: How to use a T4 template for View Generation</title><link>http://blogs.msdn.com/b/adonet/archive/2008/06/20/how-to-use-a-t4-template-for-view-generation.aspx#10111514</link><pubDate>Tue, 04 Jan 2011 16:42:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10111514</guid><dc:creator>Terry</dc:creator><description>&lt;p&gt;Do these templates still work in .NET 4.0? &amp;nbsp;Visual Studio 2010?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10111514" width="1" height="1"&gt;</description></item><item><title>re: How to use a T4 template for View Generation</title><link>http://blogs.msdn.com/b/adonet/archive/2008/06/20/how-to-use-a-t4-template-for-view-generation.aspx#10085552</link><pubDate>Wed, 03 Nov 2010 17:01:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10085552</guid><dc:creator>Roy</dc:creator><description>&lt;p&gt;Why the view file generated always has a 1 appended like MyModel.Views1.cs?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10085552" width="1" height="1"&gt;</description></item><item><title>re: How to use a T4 template for View Generation</title><link>http://blogs.msdn.com/b/adonet/archive/2008/06/20/how-to-use-a-t4-template-for-view-generation.aspx#10063096</link><pubDate>Thu, 16 Sep 2010 10:48:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10063096</guid><dc:creator>Unai</dc:creator><description>&lt;p&gt;Brian Kuhn, Daniel:&lt;/p&gt;
&lt;p&gt;the template contain an error in msdl namespace, change this line&lt;/p&gt;
&lt;p&gt;XNamespace mslns = &amp;quot;urn:schemas-microsoft-com:windows:storage:mapping:CS&amp;quot;;&lt;/p&gt;
&lt;p&gt;for this&lt;/p&gt;
&lt;p&gt;XNamespace mslns = &amp;quot;schemas.microsoft.com/.../cs&amp;quot;;&lt;/p&gt;
&lt;p&gt;Unai&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10063096" width="1" height="1"&gt;</description></item></channel></rss>