Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DBML: s letter added to my table names

Tags:

c#

linq-to-sql

I'm using Visual Studio 2008

Each time I modify my dbml through the designer some of the table names in the designer.cs file are changed from TableName to TableNames leading to some reference errors in the rest of the project. The names that appear on the dbml are not changed.

Where does this come from ? Is it a setting ?

Edit: It happens to tables I have recently added through the designer and to all the tables that have a foreign key linking theme to these tables.

like image 699
Jla Avatar asked Dec 22 '22 00:12

Jla


1 Answers

It was a setting:

Tools > Options > Database tools > O/R Designer

And then we have a Pluralization of names option that can be switched to :

Enabled False

like image 192
Jla Avatar answered Dec 27 '22 09:12

Jla