Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pluralize English words Like LINQ to SQL Does [duplicate]

Tags:

Possible Duplicate:
Pluralize - Singularize

The C# 4.0 (maybe older versions, but I've only tested with 4.0) Linq-to-SQL generator will pluralize your table names; even tough plurals like Territory. It knows that Territories is the plural. Is there anyway to access this pluralization function?

like image 866
Geoff Avatar asked Sep 17 '10 01:09

Geoff


1 Answers

System.Data.Entity.Design.PluralizationServices.PluralizationService

EDIT Linking the (older) answer in the (older) question, as eglasias suggests. Go forth and upvote, he deserves the rep.

like image 179
Ben Voigt Avatar answered Sep 30 '22 00:09

Ben Voigt