Is there a way to set custom pluralizations in EDM designer 2010?

僤鯓⒐⒋嵵緔 提交于 2019-12-01 11:09:57

Not in Visual Studio, no.

In the meantime though you can drop down to the API level and create your own implementation derived from the abstract PluralizationService class. Once you’ve done this you can tell the EntityModelSchemaGenerator to use your implementation, rather than the default, to produce a model using your particular pluralization rules. This is an API only solution, we don’t yet provide a way to choose a different pluralizer in Visual Studio.

You can use the pluralization service in your own code, however, and customize it there.

Here's an example.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!