May 22, 2009

Creating entities with pluralize or singular object names was one of the missing features in EF V1. Like LINQ to SQL now EF4 also has a feature that enables to pluralize or singularize the created objects automatically. You have the choice whether to enable it or not by a new checkbox in the EDM Wizard.

The Pluralize or Singularize Generated Object Names Checkbox

The first thing that you notice when you create a new Entity Data Model is the new Pluralize or Singularize Generated Object Names checkbox in the EDM Wizard. This checkbox tells EF4 EDM Wizard to generate the object names with pluralize or singular names. Now you won’t need to rename most of your entity or entity sets in the model. Even though, I suggest to check the names that were created automatically but as you will see in the next figures the new feature has a nice dictionary. These are some of the entities that were generated by the wizard:

Very nice!

Summary

Lets sum up, I showed another nice feature of the new EF4 in Visual studio 2010 beta 1 version. This is a helpful feature but I didn’t fell out of my feet when I saw it because other frameworks like LINQ to SQL had it before. It was only a matter of time for EF team to add that feature.