Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

Any way to set pluralization for a single table in Linq?

$
0
0

This is getting kind of irritating.  I have a table named "Status".  Every time I make a change to the dbml, I have to also go into the .designer.cs and make sure I manually update the name of the

System.Data.Linq.Table<Status> Status


entry to

System.Data.Linq.Table<Status> Statuses



because the .cs file gets overwritten every time I modify the .dbml file.  It's only one line of code each time, but as I'm in development, datamodel changes will happen pretty often until release.  Is there a property I can change somewhere to force my own pluralization for that table?  Most answers I've found on my own research suggest I'm SOL.

EDIT: I'm also not sure why the code generator is insisting on putting my "es" on a separate line...  :-P


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>