Follow us

Thursday, December 8, 2011

How to: Turn Pluralization On and Off (O/R Designer)


How to: Turn Pluralization On and Off (O/R Designer)

By default, when you drag database objects that have names ending in 's' or 'ies' from Server Explorer / Database Explorer onto the Object Relational Designer (O/R Designer) , the names of the generated entity classes are changed from plural to singular.


This is done to more accurately represent the fact that the instantiated entity class maps to a single record of data. For example, adding a Members table to the O/R Designer results in an entity class named Member because the class will hold data for only a single Member.

Pluralization is on by default only in the English-language version of Visual Studio.

To turn pluralization ON and OFF

  1. On the Tools menu, click Options .
  2. In the Optionsdialog box, expand Database Tools.
  3. Click O/R Designer.
  4. Set Pluralization of names to Enabled = False to set the O/R Designer so that it does not change class names.
  5. Set Pluralization of names to Enabled = True to apply pluralization rules to the class names of objects added to the O/R Designer.

Source : MSDN

Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

2 comments: on "How to: Turn Pluralization On and Off (O/R Designer)"

Tools-for-english said...

On this website you can find a variety of tools that can help you prepare English language exercises within minutes. And its all FREE! COPY/PASTE or write the text you want to use in to our generators. Tools for english language

Post a Comment