Keep Original Column Names in Generated types
When you generate a model for Linq to SQL, provide an option to not autoformat the property names with upper case first letters. Instead preserve the original field name and use that.
Use case: I have several customers who use LINQ Pad for query prototyping and then copy the results from queries into their programs (I know, I know - not the best of ideas, but that's what they do). The problem is because the names don't match all sorts of fixups have to be done. An option to generate entity properties with the same casing as the underlying fields would help a lot in this case.
Preferrably this should be an option.
-
Joris Talma commented
Just deselect the following options in the data context configuration panel:
- Pluralize EntitySet and Table properties
- Capitalize property namesAnd it will work as expected.