I am naming my MYSQL tables and columns using underscore characters:
this_is_a_table
should map to: ThisIsATable
this_is_a_column
should map to: ThisIsAColumn
Dapper can handle this mapping if i set:
DefaultTypeMap.MatchNamesWithUnderscores = true;
Is there any way to enable this in Dapper-Extensions so that it maps undescore automatically?
DefaultTypeMap.MatchNamesWithUnderscores = true;
works so well. This puts a kink in the generic repository I'm building for a project. I believe the table name mapping works fine still if you decorate the class with[Table("this_is_a_table")]
. – Daile