Dapper and Enums as Strings

asked10 years ago
last updated5 years ago
viewed18.1k times
Up Vote16Down Vote

I am trying to use Dapper and Dapper-Extensions and to serialize my enums on the database as string.

Right now they are serialized as integers (inside a VARCHAR field) instead.

Is there any way to do this? Any custom type mapping that I can add?

I might need to move back to EF if i can't pull this through..