W
W
WalkInWay2015-11-08 20:42:10
ASP.NET
WalkInWay, 2015-11-08 20:42:10

Why does VS add "s" to the name when generating a model, and sometimes "Set"?

Good day!
I created a database model in MS Visual Studio 2015. After I asked to form a database based on the model, I noticed that in the script the studio converts the names of the tables to a strange form:

  • Users -> UserSet
  • Sellers->SellerSet
  • Stores-> Stores
  • Streets-> Streets

Etc. The strangest thing is that there is no single conversion format, sometimes plural is used, and sometimes "Set".
MS SQL database.
I would like to know what it is connected with and how it can be influenced.
Thanks in advance for your replies. =)
PS: I know that you can create a database in other ways and edit the generated studio script by hand, but I would like to know the reason for this behavior, because there are always options.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2015-11-09
@yarosroman

https://msdn.microsoft.com/en-us/library/vstudio/c...
Pluralize or singularize generated object names checkbox in the model creation window is responsible for this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question