<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.ormfoundation.org/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>Technical support</title><link>http://www.ormfoundation.org/forums/30.aspx</link><description>For discussing installation and setup, bugs and other technical issues with the NORMA.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>Re: PascalCase column generation not working in generated SQL; customizing column name output</title><link>http://www.ormfoundation.org/forums/thread/3020.aspx</link><pubDate>Wed, 23 May 2012 15:30:30 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:3020</guid><dc:creator>Tyler Young</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/3020.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=3020</wfw:commentRss><description>I love the &amp;quot;abbreviations&amp;quot; setting. That&amp;#39;s made my day!</description></item><item><title>Re: PascalCase column generation not working in generated SQL; customizing column name output</title><link>http://www.ormfoundation.org/forums/thread/3019.aspx</link><pubDate>Fri, 18 May 2012 18:05:40 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:3019</guid><dc:creator>Matthew Curland</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/3019.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=3019</wfw:commentRss><description>&lt;p&gt;The abbreviations settings are in a dialog available through the &amp;#39;Abbreviations&amp;#39; property on any of the &lt;em&gt;Name Generation Settings&lt;/em&gt; child nodes (&lt;em&gt;Name Generation Defaults&lt;/em&gt;, &lt;em&gt;Relational Names&lt;/em&gt;, &lt;em&gt;Table Specific&lt;/em&gt;, &lt;em&gt;Column Specific&lt;/em&gt;). You can modify object type names (but not eliminate them)&amp;nbsp;or any other phrase, including replacing the phrase with empty text to eliminate it.&lt;/p&gt;
&lt;p&gt;These are called abbrevations, but are really arbitrary replacements that are generally used to abbreviate. You can put longer phrases in here if you like.&lt;/p&gt;
&lt;p&gt;-Matt&lt;/p&gt;</description></item><item><title>Re: PascalCase column generation not working in generated SQL; customizing column name output</title><link>http://www.ormfoundation.org/forums/thread/3018.aspx</link><pubDate>Fri, 18 May 2012 16:05:25 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:3018</guid><dc:creator>Tyler Young</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/3018.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=3018</wfw:commentRss><description>&lt;p&gt;Ah yes, I did need to restart VS. Thanks! But it&amp;#39;s interesting... changes to makeValidIdentifier are only showing up in a couple of areas. I think I&amp;#39;m going to experiment with my computer at home and see if it&amp;#39;s the same there or if my work computer is having problems.&lt;/p&gt;
&lt;p&gt;Where are the abbreviation settings kept? After a bit of poking around, they remain elusive.&lt;/p&gt;
&lt;p&gt;Thanks, Matt!&lt;/p&gt;</description></item><item><title>Re: PascalCase column generation not working in generated SQL; customizing column name output</title><link>http://www.ormfoundation.org/forums/thread/3017.aspx</link><pubDate>Wed, 16 May 2012 23:08:55 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:3017</guid><dc:creator>Matthew Curland</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/3017.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=3017</wfw:commentRss><description>&lt;p&gt;The custom tool is smart enough to reload directly loaded transform files such as DDILtoSqlServer.xslt&amp;nbsp;on change, but AFAIK it doesn&amp;#39;t look for imported transform forms, so you&amp;#39;ll need to restart VS to pick up a makeValidIdentifier change.&lt;/p&gt;
&lt;p&gt;You can do quite a bit with names by adding abbreviations to the name generation settings.&amp;nbsp;Abbreviations apply to the word based as determined by casing, so GovernmentAgent can be mapped to govAgt with one abbreviation for &amp;#39;government&amp;#39; and one for &amp;#39;agent&amp;#39;.&lt;/p&gt;
&lt;p&gt;The last two public releases also support customizing the column names as a final resort.&lt;/p&gt;
&lt;p&gt;-Matt&lt;/p&gt;</description></item><item><title>Re: PascalCase column generation not working in generated SQL; customizing column name output</title><link>http://www.ormfoundation.org/forums/thread/3016.aspx</link><pubDate>Wed, 16 May 2012 18:04:34 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:3016</guid><dc:creator>Tyler Young</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/3016.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=3016</wfw:commentRss><description>&lt;p&gt;Thanks for the quick response, Matt! The data type changes were easy enough to modify in DDILtoSqlServer.xslt. Names are a bit trickier. I&amp;#39;ve been hitting &amp;quot;Run Custom Tool&amp;quot; explicitly. Maybe I&amp;#39;m going through the wrong file? The one I&amp;#39;m editing is C:\Program Files (x86)\Common Files\Neumont\DIL\Transforms\DILSupportFunctions.xslt. I changed the makeValidIdentifier to:&lt;/p&gt;
&lt;p&gt; function makeValidIdentifier(name, maxLength) {return &amp;quot;foo&amp;quot; + name;}&lt;/p&gt;
&lt;p&gt;but it hasn&amp;#39;t affected the output.&lt;/p&gt;</description></item><item><title>Re: PascalCase column generation not working in generated SQL; customizing column name output</title><link>http://www.ormfoundation.org/forums/thread/3015.aspx</link><pubDate>Tue, 15 May 2012 02:40:52 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:3015</guid><dc:creator>Matthew Curland</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/3015.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=3015</wfw:commentRss><description>&lt;p&gt;Hi Tyler,&lt;/p&gt;
&lt;p&gt;This seems to be working fine for me. Have you saved the file or explicitly executed &amp;#39;Run Custom Tool&amp;#39; on the .orm file to make sure the generated&amp;nbsp;SQL is up to date? The only thing this isn&amp;#39;t applying to is custom column names, which aren&amp;#39;t touched by the name generator.&lt;/p&gt;
&lt;p&gt;The sql key words are already quoted in &amp;#39;makeValidIdentifier&amp;#39; in DILSupportFunctions.xlst. If you&amp;#39;re set on using square-bracket delimiters instead of &amp;quot;&amp;quot; then you could modify it there.&lt;/p&gt;
&lt;p&gt;Changing the data type names is best done in the DBMS-specific XSLT overrides (DDILtoSqlServer.xslt) using the ForDataType mode applied to @type attributes.&lt;/p&gt;
&lt;p&gt;-Matt&lt;/p&gt;</description></item><item><title>PascalCase column generation not working in generated SQL; customizing column name output</title><link>http://www.ormfoundation.org/forums/thread/3014.aspx</link><pubDate>Mon, 14 May 2012 22:45:26 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:3014</guid><dc:creator>Tyler Young</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/3014.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=3014</wfw:commentRss><description>&lt;p&gt;I went into &amp;quot;ORM Model Browser&amp;quot; -&amp;gt; &amp;quot;Name Generation Settings&amp;quot; -&amp;gt; &amp;quot;Name Generation Defaults&amp;quot; -&amp;gt; &amp;quot;Relational Names&amp;quot; -&amp;gt; &amp;quot;Column Specific&amp;quot; -&amp;gt; &amp;quot;CasingOption&amp;quot;. On the Relational View it gives the correct casing, but in the generated SQL it&amp;#39;s still coming through as camelCase.&lt;/p&gt;
&lt;p&gt;On a related side note, I&amp;#39;m going through and customizing the output to give &amp;quot;VARCHAR&amp;quot; rather than &amp;quot;CHARACTER VARYING&amp;quot;, etc. One of the customizations I&amp;#39;d like is enclosing the column name in [brackets] for cases where column names are reserved words. For example, [Order] or [Right].&lt;/p&gt;
&lt;p&gt;To make changes to the column name, I&amp;#39;ve tried DDILtoSQLServer.xslt and DILSupportFunctions.xslt, but neither of them are giving the desired [result]. Are there other places I should be looking, or have I just not found the right spot yet?&lt;/p&gt;
&lt;p&gt;I realize that the changes I&amp;#39;m making will likely break generation for Oracle, DB2, and MySQL on this machine. For the scope of this project, that&amp;#39;s acceptable.&lt;/p&gt;</description></item></channel></rss>