Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for ColumnAttribute in Dapper.Contrib #1657

Closed
soundaranbu opened this issue Apr 29, 2021 · 1 comment
Closed

Add Support for ColumnAttribute in Dapper.Contrib #1657

soundaranbu opened this issue Apr 29, 2021 · 1 comment

Comments

@soundaranbu
Copy link

Hi, first of all, thanks for the great library!
I've a scenario where the table column names are in snake_case.
I know Dapper.Contrib will work when we name the C# class properties in the same way (snake_case). But that's against the .NET naming conventions and doesn't look good. In order to keep the table columns in snake_case and the C# property name in PascalCase we need an attribute ColumnAttribute similar to TableAttribute which will map the C# class properties to the table column names

or if there's switch that will convert PascalCase to snake_case on query generation is also fine.

@soundaranbu
Copy link
Author

soundaranbu commented Apr 29, 2021

Just now realized there was a plan already #722 . Any updates on this? @NickCraver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant