ADO.Net Entity Framework 4.0 – 1


Entity Framework 4.0: Pluralize or singularize generated object names

image

One of the main additions to the Entity Framework 4.0 is the checkbox shown in the screenshot below:

Pluralize or singularize generated object names

In the previous versions of Entity Framework, by default the Entity Set Name and Entity Name were same, shown the screen shot below:

clip_image004

This caused a lot of confusion for the developers when they started coding against the model.

In Entity Framework 4.0 a new feature has been introduced via the check box mentioned above. This check box is selected by default and provides, amongst others, for the pluralization or singularization of the Entity name. This checkbox practically follows the rule wherein it marked all Entity Types as singular and the Entity Set name as plural. Below is an example wherein this checkbox has been used to pluralize the Entity Set Name. You can uncheck the control to get back to the older – both name same format.

clip_image005

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s