MoonStorm / FastCrud

fast .NET ORM for strongly typed people
MIT License
506 stars 128 forks source link

why need to remove underline in tablename #139

Closed wuzhenda closed 2 years ago

wuzhenda commented 5 years ago

I have a sql server database,many tables named like "by_xxx_yyy";

when using "Dapper.FastCrud.ModelGenerator",it changed the table name from "by_xxx_yyy" to "byxxxyyy".

I read the t4 temple which include the code below.is it OK to comment them?

tbl.CleanName = tbl.CleanName.Replace("_",""); tbl.ClassName=Singularize(RemoveTablePrefixes(tbl.CleanName));

MoonStorm commented 2 years ago

Sorry for the late reply. The reason why we're cleaning up class names is to keep them in line with the C# naming conventions. But you are free to change that template in any way you want.