<?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>Pluralization</title><link>http://blogs.msdn.com/b/efdesign/archive/2008/12/02/pluralization.aspx</link><description>Unfortunately in the current version of the Entity Framework, which ships in .NET 3.5 SP1, we don't make any attempt to Singularize or Pluralize names when reverse engineering a model from the database. 
 So if, for example, your database has a table</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Pluralization</title><link>http://blogs.msdn.com/b/efdesign/archive/2008/12/02/pluralization.aspx#9703010</link><pubDate>Sat, 06 Jun 2009 21:53:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9703010</guid><dc:creator>Idsa</dc:creator><description>&lt;p&gt;I think it would be more convenient if we could set custom pluraluzation-serivice at designer or at app.config.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9703010" width="1" height="1"&gt;</description></item><item><title>re: Pluralization</title><link>http://blogs.msdn.com/b/efdesign/archive/2008/12/02/pluralization.aspx#9459632</link><pubDate>Thu, 05 Mar 2009 15:40:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9459632</guid><dc:creator>Tanveer Badar</dc:creator><description>&lt;p&gt;There are two pain points for me in EF in this regard, not related to pluralization/singularization.&lt;/p&gt;
&lt;p&gt;Name generation/inference in EF is not on par with other features. I can't manually renamed 45 tables and a couple of hundred properties because EF copied names as it is.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=374920"&gt;https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=374920&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=374922"&gt;https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=374922&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First one has been closed as by design, second one is still active. And honestly, its the second one which needs much more attention.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9459632" width="1" height="1"&gt;</description></item><item><title>re: Pluralization</title><link>http://blogs.msdn.com/b/efdesign/archive/2008/12/02/pluralization.aspx#9184390</link><pubDate>Mon, 08 Dec 2008 14:51:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9184390</guid><dc:creator>Benjamin Janecke</dc:creator><description>&lt;p&gt;@AlexJ goog decision not disabling it but turning it off only. I work for a German company and we name our tables English so the pluralization feature will still be useful for us. Though I must confess that we use the English version of Visual Studio anyway because of the poor German translation (which is, however, still a lot better than in Windows Vista) ;) &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9184390" width="1" height="1"&gt;</description></item><item><title>re: Pluralization</title><link>http://blogs.msdn.com/b/efdesign/archive/2008/12/02/pluralization.aspx#9171084</link><pubDate>Wed, 03 Dec 2008 21:10:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9171084</guid><dc:creator>David Nelson</dc:creator><description>&lt;p&gt;I agree that a more general mechanism is need for name transformation than just pluralization. When dealing with large databases, the amount of effort it takes to transform names from db conventions to code conventions can be overwhelming. And there is no reason why the majority of that effort can't be handled automatically, if a facility is available to do it.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9171084" width="1" height="1"&gt;</description></item><item><title>re: Pluralization</title><link>http://blogs.msdn.com/b/efdesign/archive/2008/12/02/pluralization.aspx#9171075</link><pubDate>Wed, 03 Dec 2008 21:08:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9171075</guid><dc:creator>Alex D James</dc:creator><description>&lt;p&gt;@Marc&lt;/p&gt;
&lt;p&gt;Just for an update. By default in the wizard the checkbox is off of non-english locales.&lt;/p&gt;
&lt;p&gt;There was a debate internally about making it off and disabling it too in these situations. But we decided some people may still want to use this anyway.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9171075" width="1" height="1"&gt;</description></item><item><title>re: Pluralization</title><link>http://blogs.msdn.com/b/efdesign/archive/2008/12/02/pluralization.aspx#9171031</link><pubDate>Wed, 03 Dec 2008 20:55:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9171031</guid><dc:creator>Alex D James</dc:creator><description>&lt;p&gt;@Marc&lt;/p&gt;
&lt;p&gt;Sorry I didn't make this clear in the post... I updated the post yesterday to (see the bottom) to indicate that this pluralization is optional. I will follow-up with the tools team to ensure that the check-box talked about is off by default for locales other than English&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9171031" width="1" height="1"&gt;</description></item><item><title>re: Pluralization</title><link>http://blogs.msdn.com/b/efdesign/archive/2008/12/02/pluralization.aspx#9168699</link><pubDate>Wed, 03 Dec 2008 10:04:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9168699</guid><dc:creator>Kristofer</dc:creator><description>&lt;p&gt;Looks great.&lt;/p&gt;
&lt;p&gt;To add to what Roger and Marc commented above - my add-in for L2S and EF allows name transformations in addition to singularization/pluralization. This means that in addition to singularization/pluralization you can also remove (or add) prefixes and suffixes, remove underscore separators, apply ProperCase etc.&lt;/p&gt;
&lt;p&gt;See &lt;a rel="nofollow" target="_new" href="http://www.huagati.com/dbmltools/"&gt;http://www.huagati.com/dbmltools/&lt;/a&gt; for a full feature list. (Renaming/name transformations is supported for both EF and L2S).&lt;/p&gt;
&lt;p&gt;And if you (MSFT) would like to provide this to all users of EF/L2S already today (as opposed to in VS2010) I would be happy to discuss transferring ownership of my add-in to MSFT. (Suggested already but met with silence so far...)&lt;/p&gt;
&lt;p&gt;The user feedback is great and I think the add-in would be even more popular if it was shipped under the MSFT brand. A couple of people at MSFT have tried it out/evaluated it already so you should be able to hunt down someone internally who can give you feedback on the features supported.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Kristofer&lt;/p&gt;
&lt;p&gt;Ps. A bunch of new features for EF is in the pipeline; EDMX cleanup is currently in beta, incremental DDL generation is under development. (DDL generation from L2S models is already supported and was RTMd a bit over a week ago...)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9168699" width="1" height="1"&gt;</description></item><item><title>re: Pluralization</title><link>http://blogs.msdn.com/b/efdesign/archive/2008/12/02/pluralization.aspx#9168522</link><pubDate>Wed, 03 Dec 2008 08:57:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9168522</guid><dc:creator>Marc Scheuner</dc:creator><description>&lt;p&gt;Bear in mind when designing these pluralization/singularization methods that not everyone is using English names, and the rules for English do *NOT* apply for other languages (e.g. German, French etc.). The Linq-to-Sql method works pretty badly on German table names, and I'd *STRONGLY* argue that any such &amp;quot;automagic&amp;quot; feature needs to be able to turned off when it causes more grief than good....&lt;/p&gt;
&lt;p&gt;What I'd really like to see in EF v2 is a way to specify certain &amp;quot;name transformations&amp;quot; when importing database tables - e.g. our DBA prefixes all tables with &amp;quot;T_&amp;quot; , e.g. T_Orders, so I'd like to be able to tell the EF designer to always remove a leading &amp;quot;T_&amp;quot; (or tbl) prefix from the physical database table name when creating an entity from it. With 3 or 4 tables, it's no trouble doing this manually - but what if you need to import hundreds of tables, and you need to later update that model???&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9168522" width="1" height="1"&gt;</description></item><item><title>re: Pluralization</title><link>http://blogs.msdn.com/b/efdesign/archive/2008/12/02/pluralization.aspx#9167479</link><pubDate>Wed, 03 Dec 2008 04:00:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9167479</guid><dc:creator>Qiang</dc:creator><description>&lt;p&gt;I think it's very helpful, thanks.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9167479" width="1" height="1"&gt;</description></item><item><title>re: Pluralization</title><link>http://blogs.msdn.com/b/efdesign/archive/2008/12/02/pluralization.aspx#9166227</link><pubDate>Wed, 03 Dec 2008 00:19:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9166227</guid><dc:creator>efdesign</dc:creator><description>&lt;p&gt;@Jon&lt;/p&gt;
&lt;p&gt;Glad you think this is a good thing to do.&lt;/p&gt;
&lt;p&gt;@Mifko&lt;/p&gt;
&lt;p&gt;Don't worry you will definitely be able to turn pluralization off, in Visual Studio there will be a checkbox in the wizard, and for EDMGen.exe on the commandline the default is not to pluralize you have to use the /Pluralize commandline switch to get pluralization.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9166227" width="1" height="1"&gt;</description></item></channel></rss>