linq2db / linq2db.LINQPad

linq2db.LINQPad is a driver for LINQPad.
MIT License
74 stars 24 forks source link

No control over table name capitalization. #89

Closed Corey-M closed 1 year ago

Corey-M commented 1 year ago

Tables and views in my databases often have names with specified capitalization, and previously the L2DB driver has left them intact. The new v5.0.0 driver however forces PascalCase on table and view names during refresh, with no apparent setting to disable this.

Example: View VDRMSite is generated as VdrmSite.

When testing code snippets or writing quick scripts the change in case for many of my table names wastes a ton of time as I have to search for the table in the tree view to find out what whacky name L2DB gave it.

Can we please get an option to use unmodified table names for class and property names where possible?

wesj1s commented 1 year ago

Yes please, and an option to retain _ prefix in field names. For the same reason. And please don't suppress in table names. Please keep the same table names and field names as are displayed when the selected Language is SQL. Changing from SQL to C# as the language updates all table names and field names to names without underscores.