I want to PascalCase Property( like => FirstName) to Upper Under Property (like =>FIRST_NAME) How can I do it
Asked
Active
Viewed 144 times
0
-
Possibly duplicate https://stackoverflow.com/questions/48497674/c-sharp-automapper-map-issue-with-upper-case-under-score – harpal Mar 14 '22 at 10:11
-
@HPSingh is correct, you need to write a custom naming convention. – Lucian Bargaoanu Mar 14 '22 at 10:27
-
thanks,I was wrong ,AutoMapper is not case sensitive ,but,I haven used Attribute [TypeMapper(SourceType = typeof(Order))] on class ,it cause the configuration to fail . – learn more Mar 16 '22 at 00:10