简体   繁体   中英

What does PluralizingEntitySetNameConvention do?

I'm learning code first and I'm going over the default conventions ( http://msdn.microsoft.com/en-us/library/gg696316(v=vs.103).aspx ), and I'm wondering what PluralizingEntitySetNameConvention does. I understand it pluralizes something, like PluralizingTableNameConvention , but what does it pluralize exactly? Can you give an example where the effects of this convention would be noticeable?

It would be to do with the name to be used in creating navigation properties ie Person to People vs Person to Persons. I think this is relevant when you are using a designer to generate code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM