Using Dapper to populate Enum properties
Sure – as long as your enum agrees, i.e. enum MyEnumType : byte { Foo, Bar, Blip, … } then it will all work automatically. (this limitation is by design, and shared with LINQ-to-SQL as it happens) Alternatively, if the enum is : int and can’t be changed, cast it in the SQL: SELECT …, … Read more