1
Vote

RepositorySql should not append "s" to entity table names

description

In RepositorySql Init you make the assumption that the database model and the entity models will always use different forms of the noun by implicitly adding an "s" to the entity name.
 
e.g the entity Product will always be represented by table Products
 
While this seem to be good practice, it also completely removes the possibility to use certain entities like 'mass', 'loss', 'patch', 'authority' etc.
 
It also introduces a hidden complexity in the repository, I need to know this behavior exists in order to model my DB correctly.

comments