Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Hello Friends,

I have 2 scenarios,

Scenario 1:
Ok, i was using the Object Relational Designer, i dragged my database table into the ORD(Object Relational Designer)

I went to the tools option, then into the O/R designer and then when i saw the Enable Pluralization option, it was by default set to true.


Now, i instantiated the DataContext class like below(I gave some random name to the DataContext class):

MyDataBaseDataContext db = new MyDataBaseDataContext(connectionString);



So, it became difficult for me to directly access the actual table from the database.


Scenario 2:

Now, i again went back to the option of Enable Pluralization, i turned it off. This time, every thing was different. Another overload in the DataContext class was added, it was an empty constructor(it din't ask for any connection string).


I then directly instantiated the datacontext class and used its object to querry my table.



Why does this happen? whats the difference in enabling and disabling the pluralization?

Thanks a ton,
Rahul
Posted
Updated 10-May-14 10:19am
v2

1 solution

Turning it on will screw everything up, so don't do it.

Anecdote: One of my colleagues was working with that stuff this week and it created a table named "Softwares" -- I smacked him around a bit. I'm sure it would create "Childs", "Wolfs", and "Fishs" if given its way.
 
Share this answer
 
Comments
Rahul VB 11-May-14 2:50am    
:) what do you mean by smacked him a bit. thanks for helping

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900