Entity generation fails when the Db contains both Plural and Singular Tables
Hi, I would like to use this awesome tool to generate entities out of the Quartz's DB (its a scheduler which can store its data in the DB). When I tried to generate I got an error which is a ArgumentNullException. I decided to download the source to find what cause the problem and found that the Quartz's DB contains plural and singular table names (...imo its NOT a best practice to have mixed naming in the DB...).
The fix for this "error": Its possible to call the .Pluralize() and .Singularize() methods as if we don't know if we have Plural or .Singular tables (because its mixed).
So in the "ModelGenerator.cs" file's private "EntityName" method can be changed as the following: Line 535: From "name.Pluralize();" To "name.Pluralize(inputIsKnownToBeSingular: false);" Line 537: From "name.Singularize();" To "name.Singularize(inputIsKnownToBePlural: false);"
This way it will fix the generator for DB's which have mixed naming.
Thanks, i'll make this change soon