<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>l2st4 Issue Tracker Rss Feed</title><link>http://www.codeplex.com/l2st4/WorkItem/List.aspx</link><description>l2st4 Issue Tracker Rss Description</description><item><title>Commented Issue: Database objects with names the same as language keywords produce invalid code [7726]</title><link>http://l2st4.codeplex.com/workitem/7726</link><description>Database objects with names the same as language keywords are not handled elegantly. I realize this is a known issue but it&amp;#39;s also a big blocker for our usage. I could edit the template myself however I feel this would be counterproductive since we are not allowed to submit patches for inclusion according to Damien&amp;#39;s response to different proposed patch. Is there any way this can be addressed in the available template so the &amp;#64; character is used to prefix properties or class names that happen to collide with language keywords such as &amp;#34;do&amp;#34;, &amp;#34;class&amp;#34;, or &amp;#34;int&amp;#34;. It appears there is a built in method that could help CodeDomProvider.CreateEscapedIdentifier which may make this dynamic to the target language.&lt;br /&gt;&amp;#160;&lt;br /&gt;On the other hand, If this project is no longer being maintained, maybe we should consider starting up a community supported fork of this project here on CodePlex.&lt;br /&gt;Comments: ** Comment from web user: kainhart ** &lt;p&gt;Understood, I was only asking the question because your last response was from two years ago and you added no comment when you closed the issue. Since CodePlex doesn't seem to have any separate way to indicate the resolution to the issue other than it was closed I didn't have any clear way to know whether you or somebody else had fixed the issue regardless of your original attitude about whether it should be within the scope of the project. Thanks for clarifying now though so that I don't have to hunt through the source code change list for my answer.&lt;/p&gt;</description><author>kainhart</author><pubDate>Thu, 28 Mar 2013 21:34:04 GMT</pubDate><guid isPermaLink="false">Commented Issue: Database objects with names the same as language keywords produce invalid code [7726] 20130328093404P</guid></item><item><title>Commented Issue: Database objects with names the same as language keywords produce invalid code [7726]</title><link>http://l2st4.codeplex.com/workitem/7726</link><description>Database objects with names the same as language keywords are not handled elegantly. I realize this is a known issue but it&amp;#39;s also a big blocker for our usage. I could edit the template myself however I feel this would be counterproductive since we are not allowed to submit patches for inclusion according to Damien&amp;#39;s response to different proposed patch. Is there any way this can be addressed in the available template so the &amp;#64; character is used to prefix properties or class names that happen to collide with language keywords such as &amp;#34;do&amp;#34;, &amp;#34;class&amp;#34;, or &amp;#34;int&amp;#34;. It appears there is a built in method that could help CodeDomProvider.CreateEscapedIdentifier which may make this dynamic to the target language.&lt;br /&gt;&amp;#160;&lt;br /&gt;On the other hand, If this project is no longer being maintained, maybe we should consider starting up a community supported fork of this project here on CodePlex.&lt;br /&gt;Comments: ** Comment from web user: damieng ** &lt;p&gt;I responded __twice already__ to this post stating the goal of the template is to be an _easy to use starting point_ for people needing their own LINQ to SQL code generation. Adding escaping all over the template to handle keyword conflicts/string escaping etc. would be counter to that goal.&lt;/p&gt;</description><author>damieng</author><pubDate>Thu, 28 Mar 2013 18:32:58 GMT</pubDate><guid isPermaLink="false">Commented Issue: Database objects with names the same as language keywords produce invalid code [7726] 20130328063258P</guid></item><item><title>Closed Issue: Fix for error "The type or namespace name 'Continents' could not be found" [10468]</title><link>http://l2st4.codeplex.com/workitem/10468</link><description>Just fixed a small typo on People.DBML sample file.&lt;br /&gt;&amp;#160;&lt;br /&gt;Type of &amp;#91;Country.Continent&amp;#93; is &amp;#91;System.String&amp;#93; instead of &amp;#91;Continents&amp;#93;&lt;br /&gt;&amp;#160;&lt;br /&gt;Beside that, well done Damien and thanks for sharing it&amp;#33;&lt;br /&gt;</description><author>damieng</author><pubDate>Thu, 28 Mar 2013 15:58:30 GMT</pubDate><guid isPermaLink="false">Closed Issue: Fix for error "The type or namespace name 'Continents' could not be found" [10468] 20130328035830P</guid></item><item><title>Commented Issue: Fix for error "The type or namespace name 'Continents' could not be found" [10468]</title><link>http://l2st4.codeplex.com/workitem/10468</link><description>Just fixed a small typo on People.DBML sample file.&lt;br /&gt;&amp;#160;&lt;br /&gt;Type of &amp;#91;Country.Continent&amp;#93; is &amp;#91;System.String&amp;#93; instead of &amp;#91;Continents&amp;#93;&lt;br /&gt;&amp;#160;&lt;br /&gt;Beside that, well done Damien and thanks for sharing it&amp;#33;&lt;br /&gt;Comments: ** Comment from web user: damieng ** &lt;p&gt;Fixed.&lt;/p&gt;</description><author>damieng</author><pubDate>Thu, 28 Mar 2013 15:58:20 GMT</pubDate><guid isPermaLink="false">Commented Issue: Fix for error "The type or namespace name 'Continents' could not be found" [10468] 20130328035820P</guid></item><item><title>Commented Issue: Database objects with names the same as language keywords produce invalid code [7726]</title><link>http://l2st4.codeplex.com/workitem/7726</link><description>Database objects with names the same as language keywords are not handled elegantly. I realize this is a known issue but it&amp;#39;s also a big blocker for our usage. I could edit the template myself however I feel this would be counterproductive since we are not allowed to submit patches for inclusion according to Damien&amp;#39;s response to different proposed patch. Is there any way this can be addressed in the available template so the &amp;#64; character is used to prefix properties or class names that happen to collide with language keywords such as &amp;#34;do&amp;#34;, &amp;#34;class&amp;#34;, or &amp;#34;int&amp;#34;. It appears there is a built in method that could help CodeDomProvider.CreateEscapedIdentifier which may make this dynamic to the target language.&lt;br /&gt;&amp;#160;&lt;br /&gt;On the other hand, If this project is no longer being maintained, maybe we should consider starting up a community supported fork of this project here on CodePlex.&lt;br /&gt;Comments: ** Comment from web user: kainhart ** &lt;p&gt;I noticed this issue was closed but I don't see an explanation of why? Is it By Design, Wont Fix, or Fixed?&lt;/p&gt;</description><author>kainhart</author><pubDate>Wed, 27 Mar 2013 18:18:27 GMT</pubDate><guid isPermaLink="false">Commented Issue: Database objects with names the same as language keywords produce invalid code [7726] 20130327061827P</guid></item><item><title>Closed Issue: Error when T4 Templates set to transform on every build - VS2010 [5874]</title><link>http://l2st4.codeplex.com/workitem/5874</link><description>I have been getting an error with the L2ST4 templates in VS2010 when the following are added to a csproj file&amp;#58;&lt;br /&gt;&amp;#160;&lt;br /&gt;&amp;#60;TransformOnBuild&amp;#62;true&amp;#60;&amp;#47;TransformOnBuild&amp;#62;&lt;br /&gt;&amp;#60;TransformOutOfDateOnly&amp;#62;false&amp;#60;&amp;#47;TransformOutOfDateOnly&amp;#62;&lt;br /&gt;&amp;#160;&lt;br /&gt;These should force all T4 templates in the project to be transformed on every compile, not just when the T4 template or related files are updated.&lt;br /&gt;&amp;#160;&lt;br /&gt;The following are the messages from the output window in VS&amp;#58;&lt;br /&gt;Transforming template CCRS.tt...&lt;br /&gt;C&amp;#58;&amp;#92;Program Files &amp;#40;x86&amp;#41;&amp;#92;MSBuild&amp;#92;Microsoft&amp;#92;VisualStudio&amp;#92;TextTemplating&amp;#92;v10.0&amp;#92;Microsoft.TextTemplating.targets&amp;#40;396,5&amp;#41;&amp;#58; error &amp;#58; Running transformation&amp;#58; System.ArgumentNullException&amp;#58; Value cannot be null.&lt;br /&gt;C&amp;#58;&amp;#92;Program Files &amp;#40;x86&amp;#41;&amp;#92;MSBuild&amp;#92;Microsoft&amp;#92;VisualStudio&amp;#92;TextTemplating&amp;#92;v10.0&amp;#92;Microsoft.TextTemplating.targets&amp;#40;396,5&amp;#41;&amp;#58; error &amp;#58; Parameter name&amp;#58; Could not obtain DTE from host&lt;br /&gt;C&amp;#58;&amp;#92;Program Files &amp;#40;x86&amp;#41;&amp;#92;MSBuild&amp;#92;Microsoft&amp;#92;VisualStudio&amp;#92;TextTemplating&amp;#92;v10.0&amp;#92;Microsoft.TextTemplating.targets&amp;#40;396,5&amp;#41;&amp;#58; error &amp;#58; at Microsoft.VisualStudio.TextTemplating6A33BEE2DA2D5E51284C36F80D152A12.GeneratedTextTransformation.VSManagementStrategy..ctor&amp;#40;ITextTemplatingEngineHost host&amp;#41;&lt;br /&gt;C&amp;#58;&amp;#92;Program Files &amp;#40;x86&amp;#41;&amp;#92;MSBuild&amp;#92;Microsoft&amp;#92;VisualStudio&amp;#92;TextTemplating&amp;#92;v10.0&amp;#92;Microsoft.TextTemplating.targets&amp;#40;396,5&amp;#41;&amp;#58; error &amp;#58; at Microsoft.VisualStudio.TextTemplating6A33BEE2DA2D5E51284C36F80D152A12.GeneratedTextTransformation.ManagementStrategy.Create&amp;#40;ITextTemplatingEngineHost host&amp;#41;&lt;br /&gt;C&amp;#58;&amp;#92;Program Files &amp;#40;x86&amp;#41;&amp;#92;MSBuild&amp;#92;Microsoft&amp;#92;VisualStudio&amp;#92;TextTemplating&amp;#92;v10.0&amp;#92;Microsoft.TextTemplating.targets&amp;#40;396,5&amp;#41;&amp;#58; error &amp;#58; at Microsoft.VisualStudio.TextTemplating6A33BEE2DA2D5E51284C36F80D152A12.GeneratedTextTransformation.Manager..ctor&amp;#40;ITextTemplatingEngineHost host, StringBuilder template, Boolean commonHeader&amp;#41;&lt;br /&gt;C&amp;#58;&amp;#92;Program Files &amp;#40;x86&amp;#41;&amp;#92;MSBuild&amp;#92;Microsoft&amp;#92;VisualStudio&amp;#92;TextTemplating&amp;#92;v10.0&amp;#92;Microsoft.TextTemplating.targets&amp;#40;396,5&amp;#41;&amp;#58; error &amp;#58; at Microsoft.VisualStudio.TextTemplating6A33BEE2DA2D5E51284C36F80D152A12.GeneratedTextTransformation.TransformText&amp;#40;&amp;#41;&lt;br /&gt;C&amp;#58;&amp;#92;Program Files &amp;#40;x86&amp;#41;&amp;#92;MSBuild&amp;#92;Microsoft&amp;#92;VisualStudio&amp;#92;TextTemplating&amp;#92;v10.0&amp;#92;Microsoft.TextTemplating.targets&amp;#40;396,5&amp;#41;&amp;#58; error &amp;#58; at Microsoft.VisualStudio.TextTemplating.TransformationRunner.RunTransformation&amp;#40;TemplateProcessingSession session, String source, ITextTemplatingEngineHost host, String&amp;#38; result&amp;#41;. Line&amp;#61;0, Column&amp;#61;0&lt;br /&gt;&amp;#160;&lt;br /&gt;The issue appears to be with the ManagementStrategy and VSManagementStrategy in the l2st4.ttinclude file.  I have attached a brute force patch that uses a simple try...catch to get around the issue but this should probably have a more elegant solution included in the next release.&lt;br /&gt;</description><author>damieng</author><pubDate>Wed, 27 Mar 2013 16:21:12 GMT</pubDate><guid isPermaLink="false">Closed Issue: Error when T4 Templates set to transform on every build - VS2010 [5874] 20130327042112P</guid></item><item><title>Closed Issue: Database objects with names the same as language keywords produce invalid code [7726]</title><link>http://l2st4.codeplex.com/workitem/7726</link><description>Database objects with names the same as language keywords are not handled elegantly. I realize this is a known issue but it&amp;#39;s also a big blocker for our usage. I could edit the template myself however I feel this would be counterproductive since we are not allowed to submit patches for inclusion according to Damien&amp;#39;s response to different proposed patch. Is there any way this can be addressed in the available template so the &amp;#64; character is used to prefix properties or class names that happen to collide with language keywords such as &amp;#34;do&amp;#34;, &amp;#34;class&amp;#34;, or &amp;#34;int&amp;#34;. It appears there is a built in method that could help CodeDomProvider.CreateEscapedIdentifier which may make this dynamic to the target language.&lt;br /&gt;&amp;#160;&lt;br /&gt;On the other hand, If this project is no longer being maintained, maybe we should consider starting up a community supported fork of this project here on CodePlex.&lt;br /&gt;</description><author>damieng</author><pubDate>Wed, 27 Mar 2013 16:20:50 GMT</pubDate><guid isPermaLink="false">Closed Issue: Database objects with names the same as language keywords produce invalid code [7726] 20130327042050P</guid></item><item><title>Closed Issue: Getting an error about not reading the l2st4 [10540]</title><link>http://l2st4.codeplex.com/workitem/10540</link><description>I get this error when I try to run the template. &lt;br /&gt;Error&amp;#9;4&amp;#9;Failed to resolve include text for file&amp;#58;The path &amp;#39;C&amp;#58;&amp;#92;SVN&amp;#92;trunk&amp;#92;WorkProject&amp;#92;WorkplacesafteyMVC&amp;#92;Models&amp;#92;L2ST4.ttinclude&amp;#39; must be either local to this computer or part of your trusted zone. If you have downloaded this template, you may need to &amp;#39;Unblock&amp;#39; it using the properties page for the template file in Windows Explorer.&amp;#9;C&amp;#58;&amp;#92;SVN&amp;#92;trunk&amp;#92;WorkProject&amp;#92;WorkplacesafteyMVC&amp;#92;Models&amp;#92;WorkplacesafteyData.tt&amp;#9;0&amp;#9;0&amp;#9;WorkplacesafteyMVC&lt;br /&gt;</description><author>damieng</author><pubDate>Wed, 27 Mar 2013 16:19:00 GMT</pubDate><guid isPermaLink="false">Closed Issue: Getting an error about not reading the l2st4 [10540] 20130327041900P</guid></item><item><title>Commented Issue: Getting an error about not reading the l2st4 [10540]</title><link>http://l2st4.codeplex.com/workitem/10540</link><description>I get this error when I try to run the template. &lt;br /&gt;Error&amp;#9;4&amp;#9;Failed to resolve include text for file&amp;#58;The path &amp;#39;C&amp;#58;&amp;#92;SVN&amp;#92;trunk&amp;#92;WorkProject&amp;#92;WorkplacesafteyMVC&amp;#92;Models&amp;#92;L2ST4.ttinclude&amp;#39; must be either local to this computer or part of your trusted zone. If you have downloaded this template, you may need to &amp;#39;Unblock&amp;#39; it using the properties page for the template file in Windows Explorer.&amp;#9;C&amp;#58;&amp;#92;SVN&amp;#92;trunk&amp;#92;WorkProject&amp;#92;WorkplacesafteyMVC&amp;#92;Models&amp;#92;WorkplacesafteyData.tt&amp;#9;0&amp;#9;0&amp;#9;WorkplacesafteyMVC&lt;br /&gt;Comments: ** Comment from web user: damieng ** &lt;p&gt;Yes, Windows blocks files it downloads.&lt;/p&gt;&lt;p&gt;Go into that folder in Windows Explorer, choose properties on the that file and hit the Unblock button.&lt;/p&gt;</description><author>damieng</author><pubDate>Thu, 18 Oct 2012 15:32:59 GMT</pubDate><guid isPermaLink="false">Commented Issue: Getting an error about not reading the l2st4 [10540] 20121018033259P</guid></item><item><title>Created Issue: Getting an error about not reading the l2st4 [10540]</title><link>http://l2st4.codeplex.com/workitem/10540</link><description>I get this error when I try to run the template. &lt;br /&gt;Error&amp;#9;4&amp;#9;Failed to resolve include text for file&amp;#58;The path &amp;#39;C&amp;#58;&amp;#92;SVN&amp;#92;trunk&amp;#92;WorkProject&amp;#92;WorkplacesafteyMVC&amp;#92;Models&amp;#92;L2ST4.ttinclude&amp;#39; must be either local to this computer or part of your trusted zone. If you have downloaded this template, you may need to &amp;#39;Unblock&amp;#39; it using the properties page for the template file in Windows Explorer.&amp;#9;C&amp;#58;&amp;#92;SVN&amp;#92;trunk&amp;#92;WorkProject&amp;#92;WorkplacesafteyMVC&amp;#92;Models&amp;#92;WorkplacesafteyData.tt&amp;#9;0&amp;#9;0&amp;#9;WorkplacesafteyMVC&lt;br /&gt;</description><author>viperassasin</author><pubDate>Wed, 17 Oct 2012 19:09:49 GMT</pubDate><guid isPermaLink="false">Created Issue: Getting an error about not reading the l2st4 [10540] 20121017070949P</guid></item><item><title>Created Issue: Fix for error "The type or namespace name 'Continents' could not be found" [10468]</title><link>http://l2st4.codeplex.com/workitem/10468</link><description>Just fixed a small typo on People.DBML sample file.&lt;br /&gt;&lt;br /&gt;Type of &amp;#91;Country.Continent&amp;#93; is &amp;#91;System.String&amp;#93; instead of &amp;#91;Continents&amp;#93;&lt;br /&gt;&lt;br /&gt;Beside that, well done Damien and thanks for sharing it&amp;#33;&lt;br /&gt;</description><author>JulioNobre</author><pubDate>Thu, 06 Sep 2012 17:38:36 GMT</pubDate><guid isPermaLink="false">Created Issue: Fix for error "The type or namespace name 'Continents' could not be found" [10468] 20120906053836P</guid></item><item><title>Commented Issue: Database objects with names the same as language keywords produce invalid code [7726]</title><link>http://l2st4.codeplex.com/workitem/7726</link><description>Database objects with names the same as language keywords are not handled elegantly. I realize this is a known issue but it&amp;#39;s also a big blocker for our usage. I could edit the template myself however I feel this would be counterproductive since we are not allowed to submit patches for inclusion according to Damien&amp;#39;s response to different proposed patch. Is there any way this can be addressed in the available template so the &amp;#64; character is used to prefix properties or class names that happen to collide with language keywords such as &amp;#34;do&amp;#34;, &amp;#34;class&amp;#34;, or &amp;#34;int&amp;#34;. It appears there is a built in method that could help CodeDomProvider.CreateEscapedIdentifier which may make this dynamic to the target language.&lt;br /&gt;&lt;br /&gt;On the other hand, If this project is no longer being maintained, maybe we should consider starting up a community supported fork of this project here on CodePlex.&lt;br /&gt;Comments: ** Comment from web user: kainhart ** &lt;p&gt;Has anybody else who has run into this problem found any other projects that provide a more full featured approach that can match the built in Linq to SQL code generator&amp;#63; If so I would rather reuse what somebody else has done instead of re-inventing the wheel. Perhaps we should fork this project and extend it as needed for that reason&amp;#63;&lt;/p&gt;</description><author>kainhart</author><pubDate>Wed, 07 Dec 2011 16:57:29 GMT</pubDate><guid isPermaLink="false">Commented Issue: Database objects with names the same as language keywords produce invalid code [7726] 20111207045729P</guid></item><item><title>Commented Issue: Sequence contains no matching element [8678]</title><link>http://l2st4.codeplex.com/workitem/8678</link><description>When I run the .tt file in TextTransform &amp;#40;v10 - with .net 4.0&amp;#41; I wind up with this error&amp;#58;&lt;br /&gt;&lt;br /&gt;error &amp;#58; Running transformation&amp;#58; System.InvalidOperationException&amp;#58; Sequence contains no matching element&lt;br /&gt;   at System.Linq.Enumerable.Single&amp;#91;TSource&amp;#93;&amp;#40;IEnumerable&amp;#96;1 source, Func&amp;#96;2 predicate&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.TextTemplating9fa0732bbbb543eb89ac2e5db145c922.GeneratedTextTransformation.Association.&amp;#60;get_OtherKey&amp;#62;b__34&amp;#40;String o&amp;#41;&lt;br /&gt;   at System.Linq.Enumerable.WhereSelectArrayIterator&amp;#96;2.MoveNext&amp;#40;&amp;#41;&lt;br /&gt;   at System.Collections.Generic.List&amp;#96;1..ctor&amp;#40;IEnumerable&amp;#96;1 collection&amp;#41;&lt;br /&gt;   at System.Linq.Enumerable.ToList&amp;#91;TSource&amp;#93;&amp;#40;IEnumerable&amp;#96;1 source&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.TextTemplating9fa0732bbbb543eb89ac2e5db145c922.GeneratedTextTransformation.Association.get_OtherKey&amp;#40;&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.TextTemplating9fa0732bbbb543eb89ac2e5db145c922.GeneratedTextTransformation.TransformText&amp;#40;&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.TextTemplating.TransformationRunner.RunTransformation&amp;#40;TemplateProcessingSession session, String source, ITextTemplatingEngineHost host, String&amp;#38; result&amp;#41;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Any ideas&amp;#63;  I&amp;#39;m guessing there&amp;#39;s a chance the dbml format has changed since this tool was released&amp;#63;&lt;br /&gt;Comments: ** Comment from web user: tlianza ** &lt;p&gt;The tweaks I made to resolve this were&amp;#58;&lt;br /&gt;1&amp;#41; On line 330 of L2ST4.ttinclude, changed the OtherKey getter to this &amp;#40;so it could return null, if there are no columns&amp;#41;.&lt;br /&gt;get &amp;#123; return &amp;#40;Type.Columns.Count &amp;#62; 0&amp;#41; &amp;#63; OtherKeyMembers.Select&amp;#40;o &amp;#61;&amp;#62; Type.Columns.Single&amp;#40;c &amp;#61;&amp;#62; c.Member &amp;#61;&amp;#61; o&amp;#41;&amp;#41;.ToList&amp;#40;&amp;#41; &amp;#58; null&amp;#59; &amp;#125;&lt;/p&gt;&lt;p&gt;2&amp;#41; Then, in the .tt file wrapped the usage of the otherkey property in a null check&amp;#58;&lt;br /&gt;if&amp;#40;association.OtherKey &amp;#33;&amp;#61; null&amp;#41;&amp;#123; &amp;#35;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;&amp;#35;&amp;#61;association.ThisKey&amp;#91;keyIdx&amp;#93;.Storage&amp;#35;&amp;#62; &amp;#61; value.&amp;#60;&amp;#35;&amp;#61;association.OtherKey&amp;#91;keyIdx&amp;#93;.Member&amp;#35;&amp;#62;&amp;#59;&lt;br /&gt;&amp;#60;&amp;#35;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#125;&amp;#35;&amp;#62;&lt;/p&gt;&lt;p&gt;Not 100&amp;#37; sure this works properly, but at least allowed me to generate the .cs file.&lt;/p&gt;</description><author>tlianza</author><pubDate>Sun, 04 Sep 2011 04:10:10 GMT</pubDate><guid isPermaLink="false">Commented Issue: Sequence contains no matching element [8678] 20110904041010A</guid></item><item><title>Commented Issue: Sequence contains no matching element [8678]</title><link>http://l2st4.codeplex.com/workitem/8678</link><description>When I run the .tt file in TextTransform &amp;#40;v10 - with .net 4.0&amp;#41; I wind up with this error&amp;#58;&lt;br /&gt;&lt;br /&gt;error &amp;#58; Running transformation&amp;#58; System.InvalidOperationException&amp;#58; Sequence contains no matching element&lt;br /&gt;   at System.Linq.Enumerable.Single&amp;#91;TSource&amp;#93;&amp;#40;IEnumerable&amp;#96;1 source, Func&amp;#96;2 predicate&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.TextTemplating9fa0732bbbb543eb89ac2e5db145c922.GeneratedTextTransformation.Association.&amp;#60;get_OtherKey&amp;#62;b__34&amp;#40;String o&amp;#41;&lt;br /&gt;   at System.Linq.Enumerable.WhereSelectArrayIterator&amp;#96;2.MoveNext&amp;#40;&amp;#41;&lt;br /&gt;   at System.Collections.Generic.List&amp;#96;1..ctor&amp;#40;IEnumerable&amp;#96;1 collection&amp;#41;&lt;br /&gt;   at System.Linq.Enumerable.ToList&amp;#91;TSource&amp;#93;&amp;#40;IEnumerable&amp;#96;1 source&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.TextTemplating9fa0732bbbb543eb89ac2e5db145c922.GeneratedTextTransformation.Association.get_OtherKey&amp;#40;&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.TextTemplating9fa0732bbbb543eb89ac2e5db145c922.GeneratedTextTransformation.TransformText&amp;#40;&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.TextTemplating.TransformationRunner.RunTransformation&amp;#40;TemplateProcessingSession session, String source, ITextTemplatingEngineHost host, String&amp;#38; result&amp;#41;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Any ideas&amp;#63;  I&amp;#39;m guessing there&amp;#39;s a chance the dbml format has changed since this tool was released&amp;#63;&lt;br /&gt;Comments: ** Comment from web user: tlianza ** &lt;p&gt;I believe I&amp;#39;ve found the relevant portion of the DBML that&amp;#39;s giving the template an issue.  Here&amp;#39;s a slimmed down sample which will repro - generates fine with sqlmetal, but throws in the text transform.&lt;/p&gt;&lt;p&gt;&amp;#60;&amp;#63;xml version&amp;#61;&amp;#34;1.0&amp;#34; encoding&amp;#61;&amp;#34;utf-8&amp;#34;&amp;#63;&amp;#62;&amp;#60;Database Name&amp;#61;&amp;#34;wptest&amp;#34; Class&amp;#61;&amp;#34;WishpotDataContext&amp;#34; Serialization&amp;#61;&amp;#34;Unidirectional&amp;#34; xmlns&amp;#61;&amp;#34;http&amp;#58;&amp;#47;&amp;#47;schemas.microsoft.com&amp;#47;linqtosql&amp;#47;dbml&amp;#47;2007&amp;#34;&amp;#62;&lt;br /&gt;  &amp;#60;Table Name&amp;#61;&amp;#34;ExternalBlog&amp;#34; Member&amp;#61;&amp;#34;ExternalBlogs&amp;#34;&amp;#62;&lt;br /&gt;    &amp;#60;Type Name&amp;#61;&amp;#34;ExternalBlog&amp;#34; InheritanceCode&amp;#61;&amp;#34;0&amp;#34; IsInheritanceDefault&amp;#61;&amp;#34;true&amp;#34;&amp;#62;&lt;br /&gt;      &amp;#60;Column Name&amp;#61;&amp;#34;Id&amp;#34; Type&amp;#61;&amp;#34;System.Int64&amp;#34; DbType&amp;#61;&amp;#34;BigInt NOT NULL IDENTITY&amp;#34; IsPrimaryKey&amp;#61;&amp;#34;true&amp;#34; IsDbGenerated&amp;#61;&amp;#34;true&amp;#34; CanBeNull&amp;#61;&amp;#34;false&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;      &amp;#60;Column Name&amp;#61;&amp;#34;ObjType&amp;#34; Type&amp;#61;&amp;#34;System.Byte&amp;#34; DbType&amp;#61;&amp;#34;TinyInt NOT NULL DEFAULT 0&amp;#34; CanBeNull&amp;#61;&amp;#34;false&amp;#34; IsDiscriminator&amp;#61;&amp;#34;true&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;      &amp;#60;Type Name&amp;#61;&amp;#34;ProductFeedRss&amp;#34; InheritanceCode&amp;#61;&amp;#34;1&amp;#34;&amp;#62;&lt;br /&gt;        &amp;#60;Association Name&amp;#61;&amp;#34;ProductFeedRss_Vendor&amp;#34; Member&amp;#61;&amp;#34;Vendors&amp;#34; AccessModifier&amp;#61;&amp;#34;Internal&amp;#34; ThisKey&amp;#61;&amp;#34;Id&amp;#34; OtherKey&amp;#61;&amp;#34;ProductFeedRssId&amp;#34; Type&amp;#61;&amp;#34;Vendor&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;      &amp;#60;&amp;#47;Type&amp;#62;&lt;br /&gt;    &amp;#60;&amp;#47;Type&amp;#62;&lt;br /&gt;  &amp;#60;&amp;#47;Table&amp;#62;&lt;br /&gt;  &amp;#60;Table Name&amp;#61;&amp;#34;Vendor&amp;#34; Member&amp;#61;&amp;#34;Vendors&amp;#34;&amp;#62;&lt;br /&gt;    &amp;#60;Type Name&amp;#61;&amp;#34;Vendor&amp;#34;&amp;#62;&lt;br /&gt;      &amp;#60;Column Name&amp;#61;&amp;#34;UserId&amp;#34; Type&amp;#61;&amp;#34;System.Int64&amp;#34; DbType&amp;#61;&amp;#34;BigInt NOT NULL&amp;#34; IsPrimaryKey&amp;#61;&amp;#34;true&amp;#34; CanBeNull&amp;#61;&amp;#34;false&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;      &amp;#60;Association Name&amp;#61;&amp;#34;ProductFeedRss_Vendor&amp;#34; Member&amp;#61;&amp;#34;ProductFeedRss&amp;#34; ThisKey&amp;#61;&amp;#34;ProductFeedRssId&amp;#34; OtherKey&amp;#61;&amp;#34;Id&amp;#34; Type&amp;#61;&amp;#34;ProductFeedRss&amp;#34; IsForeignKey&amp;#61;&amp;#34;true&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;    &amp;#60;&amp;#47;Type&amp;#62;&lt;br /&gt;  &amp;#60;&amp;#47;Table&amp;#62;&lt;br /&gt;&amp;#60;&amp;#47;Database&amp;#62;&lt;/p&gt;</description><author>tlianza</author><pubDate>Tue, 31 May 2011 00:30:51 GMT</pubDate><guid isPermaLink="false">Commented Issue: Sequence contains no matching element [8678] 20110531123051A</guid></item><item><title>Closed Issue: Errors encountered:- Loading the include file 'L2ST4.ttinclude' returned a null or empty string. The transformation will not be run. [5003]</title><link>http://l2st4.codeplex.com/workitem/5003</link><description>Hi, &lt;br /&gt;I created a new VS2010 Beta2 ClassLibrary project, created a dataconnection in ServerView of VS2010 with SQLServer2008&amp;#39;s Northwind database. I then added the CSharpDataClasses.tt and L2ST4.ttinclude files in the project from the folder l2st4-36036. The project location is &amp;#34;C&amp;#58;&amp;#92;Workspace&amp;#92;Abstractions&amp;#92;src&amp;#92;TestCodeGeneration&amp;#34;&lt;br /&gt;I added the LinqtoSql designer file and named it Northwind.dbml and set its build action to None and then dragged the Customer table from the server view to the desginer surface. Then renamed the CSharpDataClasses.tt to Northwind.tt, and got the following error&amp;#33;&lt;br /&gt;&lt;br /&gt;Warning&amp;#9;1&amp;#9;The path &amp;#39;C&amp;#58;&amp;#92;Workspace&amp;#92;Abstractions&amp;#92;src&amp;#92;TestCodeGeneration&amp;#92;L2ST4.ttinclude&amp;#39; must be either local to this computer or part of your trusted zone.&amp;#9;C&amp;#58;&amp;#92;Workspace&amp;#92;Abstractions&amp;#92;src&amp;#92;TestCodeGeneration&amp;#92;Northwind.tt&amp;#9;0&amp;#9;0&amp;#9;&lt;br /&gt;Error&amp;#9;2&amp;#9;Failed to resolve include text for file&amp;#58;The path &amp;#39;C&amp;#58;&amp;#92;Workspace&amp;#92;Abstractions&amp;#92;src&amp;#92;TestCodeGeneration&amp;#92;L2ST4.ttinclude&amp;#39; must be either local to this computer or part of your trusted zone.&amp;#9;C&amp;#58;&amp;#92;Workspace&amp;#92;Abstractions&amp;#92;src&amp;#92;TestCodeGeneration&amp;#92;Northwind.tt&amp;#9;0&amp;#9;0&amp;#9;&lt;br /&gt;Error&amp;#9;3&amp;#9;Loading the include file &amp;#39;L2ST4.ttinclude&amp;#39; returned a null or empty string. The transformation will not be run. &amp;#9;C&amp;#58;&amp;#92;Workspace&amp;#92;Bress&amp;#92;Abstractions&amp;#92;src&amp;#92;TestCodeGeneration&amp;#92;Northwind.tt&amp;#9;5&amp;#9;6&amp;#9;&lt;br /&gt;&lt;br /&gt;I thought its a security issue, so googled and tried the following solution from the URL &amp;#34;http&amp;#58;&amp;#47;&amp;#47;social.msdn.microsoft.com&amp;#47;Forums&amp;#47;en-US&amp;#47;vssetup&amp;#47;thread&amp;#47;5065fd7c-f2ed-4ddc-8242-19c0eda2a1a1&amp;#34;&lt;br /&gt;From the command prompt, &amp;#62;caspol -m -ag 1.2 -url C&amp;#58;&amp;#92;Workspace&amp;#92;Abstractions&amp;#92;src&amp;#92;&amp;#42; FullTrust&lt;br /&gt;Restarted the VS2010 Beta2, but got the same problems as mentioned above. &lt;br /&gt;&lt;br /&gt;I then added the LinqToSql item from CodeGeneration section of VS2010, and dragged the customers table to the designer surface in the very same project, and it worked. So, whats the deal with the other template files which is making it not work, am i missing any step&amp;#63; As far as i can tell, i followed the steps mentioned to run this template accurately. I have attached the sample project as well.&lt;br /&gt;Comments: &lt;p&gt;Windows file protection.&lt;/p&gt;</description><author>damieng</author><pubDate>Mon, 30 May 2011 16:31:36 GMT</pubDate><guid isPermaLink="false">Closed Issue: Errors encountered:- Loading the include file 'L2ST4.ttinclude' returned a null or empty string. The transformation will not be run. [5003] 20110530043136P</guid></item><item><title>Commented Issue: Sequence contains no matching element [8678]</title><link>http://l2st4.codeplex.com/workitem/8678</link><description>When I run the .tt file in TextTransform &amp;#40;v10 - with .net 4.0&amp;#41; I wind up with this error&amp;#58;&lt;br /&gt;&lt;br /&gt;error &amp;#58; Running transformation&amp;#58; System.InvalidOperationException&amp;#58; Sequence contains no matching element&lt;br /&gt;   at System.Linq.Enumerable.Single&amp;#91;TSource&amp;#93;&amp;#40;IEnumerable&amp;#96;1 source, Func&amp;#96;2 predicate&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.TextTemplating9fa0732bbbb543eb89ac2e5db145c922.GeneratedTextTransformation.Association.&amp;#60;get_OtherKey&amp;#62;b__34&amp;#40;String o&amp;#41;&lt;br /&gt;   at System.Linq.Enumerable.WhereSelectArrayIterator&amp;#96;2.MoveNext&amp;#40;&amp;#41;&lt;br /&gt;   at System.Collections.Generic.List&amp;#96;1..ctor&amp;#40;IEnumerable&amp;#96;1 collection&amp;#41;&lt;br /&gt;   at System.Linq.Enumerable.ToList&amp;#91;TSource&amp;#93;&amp;#40;IEnumerable&amp;#96;1 source&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.TextTemplating9fa0732bbbb543eb89ac2e5db145c922.GeneratedTextTransformation.Association.get_OtherKey&amp;#40;&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.TextTemplating9fa0732bbbb543eb89ac2e5db145c922.GeneratedTextTransformation.TransformText&amp;#40;&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.TextTemplating.TransformationRunner.RunTransformation&amp;#40;TemplateProcessingSession session, String source, ITextTemplatingEngineHost host, String&amp;#38; result&amp;#41;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Any ideas&amp;#63;  I&amp;#39;m guessing there&amp;#39;s a chance the dbml format has changed since this tool was released&amp;#63;&lt;br /&gt;Comments: ** Comment from web user: damieng ** &lt;p&gt;The format almost certainly hasn&amp;#39;t changed. Are you sure you have actually saved your DBML file before running it&amp;#63;  If so can you please send me your DBML file so I can repro.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;&amp;#91;&amp;#41;amien&lt;/p&gt;</description><author>damieng</author><pubDate>Mon, 30 May 2011 16:31:08 GMT</pubDate><guid isPermaLink="false">Commented Issue: Sequence contains no matching element [8678] 20110530043108P</guid></item><item><title>Created Issue: Sequence contains no matching element [8678]</title><link>http://l2st4.codeplex.com/workitem/8678</link><description>When I run the .tt file in TextTransform &amp;#40;v10 - with .net 4.0&amp;#41; I wind up with this error&amp;#58;&lt;br /&gt;&lt;br /&gt;error &amp;#58; Running transformation&amp;#58; System.InvalidOperationException&amp;#58; Sequence contains no matching element&lt;br /&gt;   at System.Linq.Enumerable.Single&amp;#91;TSource&amp;#93;&amp;#40;IEnumerable&amp;#96;1 source, Func&amp;#96;2 predicate&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.TextTemplating9fa0732bbbb543eb89ac2e5db145c922.GeneratedTextTransformation.Association.&amp;#60;get_OtherKey&amp;#62;b__34&amp;#40;String o&amp;#41;&lt;br /&gt;   at System.Linq.Enumerable.WhereSelectArrayIterator&amp;#96;2.MoveNext&amp;#40;&amp;#41;&lt;br /&gt;   at System.Collections.Generic.List&amp;#96;1..ctor&amp;#40;IEnumerable&amp;#96;1 collection&amp;#41;&lt;br /&gt;   at System.Linq.Enumerable.ToList&amp;#91;TSource&amp;#93;&amp;#40;IEnumerable&amp;#96;1 source&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.TextTemplating9fa0732bbbb543eb89ac2e5db145c922.GeneratedTextTransformation.Association.get_OtherKey&amp;#40;&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.TextTemplating9fa0732bbbb543eb89ac2e5db145c922.GeneratedTextTransformation.TransformText&amp;#40;&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.TextTemplating.TransformationRunner.RunTransformation&amp;#40;TemplateProcessingSession session, String source, ITextTemplatingEngineHost host, String&amp;#38; result&amp;#41;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Any ideas&amp;#63;  I&amp;#39;m guessing there&amp;#39;s a chance the dbml format has changed since this tool was released&amp;#63;&lt;br /&gt;</description><author>tlianza</author><pubDate>Sun, 29 May 2011 20:26:50 GMT</pubDate><guid isPermaLink="false">Created Issue: Sequence contains no matching element [8678] 20110529082650P</guid></item><item><title>Commented Issue: Database objects with names the same as language keywords produce invalid code [7726]</title><link>http://l2st4.codeplex.com/workitem/7726</link><description>Database objects with names the same as language keywords are not handled elegantly. I realize this is a known issue but it&amp;#39;s also a big blocker for our usage. I could edit the template myself however I feel this would be counterproductive since we are not allowed to submit patches for inclusion according to Damien&amp;#39;s response to different proposed patch. Is there any way this can be addressed in the available template so the &amp;#64; character is used to prefix properties or class names that happen to collide with language keywords such as &amp;#34;do&amp;#34;, &amp;#34;class&amp;#34;, or &amp;#34;int&amp;#34;. It appears there is a built in method that could help CodeDomProvider.CreateEscapedIdentifier which may make this dynamic to the target language.&lt;br /&gt;&lt;br /&gt;On the other hand, If this project is no longer being maintained, maybe we should consider starting up a community supported fork of this project here on CodePlex.&lt;br /&gt;Comments: ** Comment from web user: damieng ** &lt;p&gt;As I originally said in this thread yes it could be done but it would come at the cost of readability. The goal of this project was to provide people with a good starting point to make their own versions of templates. Wrapping every single variable emit in an escaping function really grates against that.&lt;br /&gt;&lt;/p&gt;</description><author>damieng</author><pubDate>Wed, 23 Mar 2011 17:17:19 GMT</pubDate><guid isPermaLink="false">Commented Issue: Database objects with names the same as language keywords produce invalid code [7726] 20110323051719P</guid></item><item><title>Commented Issue: Database objects with names the same as language keywords produce invalid code [7726]</title><link>http://l2st4.codeplex.com/workitem/7726</link><description>Database objects with names the same as language keywords are not handled elegantly. I realize this is a known issue but it&amp;#39;s also a big blocker for our usage. I could edit the template myself however I feel this would be counterproductive since we are not allowed to submit patches for inclusion according to Damien&amp;#39;s response to different proposed patch. Is there any way this can be addressed in the available template so the &amp;#64; character is used to prefix properties or class names that happen to collide with language keywords such as &amp;#34;do&amp;#34;, &amp;#34;class&amp;#34;, or &amp;#34;int&amp;#34;. It appears there is a built in method that could help CodeDomProvider.CreateEscapedIdentifier which may make this dynamic to the target language.&lt;br /&gt;&lt;br /&gt;On the other hand, If this project is no longer being maintained, maybe we should consider starting up a community supported fork of this project here on CodePlex.&lt;br /&gt;Comments: ** Comment from web user: Codepoet77 ** &lt;p&gt;Hi Damien. Thanks for the hard work on this and I appreciate the effort but I am also running into this issue. Are you able to resolve this one&amp;#63;&lt;/p&gt;&lt;p&gt;Though the following is true..&amp;#58; &lt;br /&gt;&amp;#34;Unfortunately wrapping every single piece of metadata driven output in a method that avoids naming makes the harder for everybody to read and edit. &amp;#34;&lt;/p&gt;&lt;p&gt;It does not work when columns are named after key words. Is this something that you would be able to fix. We are actually using your templates here at work and have run into this issue on a project. Let me know if this is something that you think you can correct.&lt;/p&gt;&lt;p&gt;Thanks&amp;#33;&lt;/p&gt;</description><author>Codepoet77</author><pubDate>Tue, 22 Mar 2011 19:03:32 GMT</pubDate><guid isPermaLink="false">Commented Issue: Database objects with names the same as language keywords produce invalid code [7726] 20110322070332P</guid></item><item><title>Commented Issue: Errors encountered:- Loading the include file 'L2ST4.ttinclude' returned a null or empty string. The transformation will not be run. [5003]</title><link>http://l2st4.codeplex.com/workitem/5003</link><description>Hi, &lt;br /&gt;I created a new VS2010 Beta2 ClassLibrary project, created a dataconnection in ServerView of VS2010 with SQLServer2008&amp;#39;s Northwind database. I then added the CSharpDataClasses.tt and L2ST4.ttinclude files in the project from the folder l2st4-36036. The project location is &amp;#34;C&amp;#58;&amp;#92;Workspace&amp;#92;Abstractions&amp;#92;src&amp;#92;TestCodeGeneration&amp;#34;&lt;br /&gt;I added the LinqtoSql designer file and named it Northwind.dbml and set its build action to None and then dragged the Customer table from the server view to the desginer surface. Then renamed the CSharpDataClasses.tt to Northwind.tt, and got the following error&amp;#33;&lt;br /&gt;&lt;br /&gt;Warning&amp;#9;1&amp;#9;The path &amp;#39;C&amp;#58;&amp;#92;Workspace&amp;#92;Abstractions&amp;#92;src&amp;#92;TestCodeGeneration&amp;#92;L2ST4.ttinclude&amp;#39; must be either local to this computer or part of your trusted zone.&amp;#9;C&amp;#58;&amp;#92;Workspace&amp;#92;Abstractions&amp;#92;src&amp;#92;TestCodeGeneration&amp;#92;Northwind.tt&amp;#9;0&amp;#9;0&amp;#9;&lt;br /&gt;Error&amp;#9;2&amp;#9;Failed to resolve include text for file&amp;#58;The path &amp;#39;C&amp;#58;&amp;#92;Workspace&amp;#92;Abstractions&amp;#92;src&amp;#92;TestCodeGeneration&amp;#92;L2ST4.ttinclude&amp;#39; must be either local to this computer or part of your trusted zone.&amp;#9;C&amp;#58;&amp;#92;Workspace&amp;#92;Abstractions&amp;#92;src&amp;#92;TestCodeGeneration&amp;#92;Northwind.tt&amp;#9;0&amp;#9;0&amp;#9;&lt;br /&gt;Error&amp;#9;3&amp;#9;Loading the include file &amp;#39;L2ST4.ttinclude&amp;#39; returned a null or empty string. The transformation will not be run. &amp;#9;C&amp;#58;&amp;#92;Workspace&amp;#92;Bress&amp;#92;Abstractions&amp;#92;src&amp;#92;TestCodeGeneration&amp;#92;Northwind.tt&amp;#9;5&amp;#9;6&amp;#9;&lt;br /&gt;&lt;br /&gt;I thought its a security issue, so googled and tried the following solution from the URL &amp;#34;http&amp;#58;&amp;#47;&amp;#47;social.msdn.microsoft.com&amp;#47;Forums&amp;#47;en-US&amp;#47;vssetup&amp;#47;thread&amp;#47;5065fd7c-f2ed-4ddc-8242-19c0eda2a1a1&amp;#34;&lt;br /&gt;From the command prompt, &amp;#62;caspol -m -ag 1.2 -url C&amp;#58;&amp;#92;Workspace&amp;#92;Abstractions&amp;#92;src&amp;#92;&amp;#42; FullTrust&lt;br /&gt;Restarted the VS2010 Beta2, but got the same problems as mentioned above. &lt;br /&gt;&lt;br /&gt;I then added the LinqToSql item from CodeGeneration section of VS2010, and dragged the customers table to the designer surface in the very same project, and it worked. So, whats the deal with the other template files which is making it not work, am i missing any step&amp;#63; As far as i can tell, i followed the steps mentioned to run this template accurately. I have attached the sample project as well.&lt;br /&gt;Comments: ** Comment from web user: damieng ** &lt;p&gt;This is caused by the Windows download file protection mechanism. I&amp;#39;m not sure of a easy way to get round this.&lt;/p&gt;</description><author>damieng</author><pubDate>Thu, 09 Dec 2010 00:43:47 GMT</pubDate><guid isPermaLink="false">Commented Issue: Errors encountered:- Loading the include file 'L2ST4.ttinclude' returned a null or empty string. The transformation will not be run. [5003] 20101209124347A</guid></item></channel></rss>