Pluralize or Singularize Generated Object Names Checkbox in Entity Framework 4

May 22, 2009

Pluralize or Singularize Generated Object Names Checkbox in Entity Framework 4

Creating entities with pluralize
or singularPluralize or Singularize Generated Object Names Checkbox in Entity Framework 4 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.
The Pluralize or Singularize Generated Object Names Checkbox
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:
Person Entity

Department Entity

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.

DotNetKicks Image
Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>