“复数化或单数化生成的对象名称”的含义是什么?设置? [英] What is the meaning of the "Pluralize or singularize generated object names" setting?

查看:158
本文介绍了“复数化或单数化生成的对象名称”的含义是什么?设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

设置新的实体数据模型时,可以选择

When setting up a new Entity data Model, there is an option to


[x]多元化或单一化生成的对象名称

[x] Pluralize or singularize generated object names

我注意到这也是LINQ中的一个选项。另外,由于我正在研究ADO.NET实体框架,因此我注意到它也具有默认来对生成的对象名称进行复数化或单数化

I have noticed this is an option in LINQ as well. Also, now that I am studying the ADO.NET entity framework, I noticed it also has 'DEFAULT' to 'pluralize or singularize generated object names'

结果是什么设置实体数据模型时不检查/不允许使用此选项。

What is the result of not checking/allowing this option when setting up the 'Entity Data Model'.

通过一种方法或其他方法进行选择,我将面对哪些优点/缺点/问题?

推荐答案

完全没问题,除了您可能希望手动进行。通常,您希望实体名称为单数,而实体集名称为复数。

No problem at all, except that you'll probably want to do it manually. Usually, you want entity names singular and entity set names plural.

这篇关于“复数化或单数化生成的对象名称”的含义是什么?设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆