You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"The value passed in must be an enum base or an underlying type for an enum, such as an Int32. (Parameter 'value')"
with strack trace
at System.Enum.ToObject(Type enumType, Object value)\r\n at Dapper.SqlMapper.QueryRowAsync[T](IDbConnection cnn, Row row, Type effectiveType, CommandDefinition command) in /_/Dapper/SqlMapper.Async.cs:line 480\r\n
However this query and setup works fine
await connection.QueryFirstAsync<int>("select MyEnumColumn from table where id = @id",parameters)
V 1.0.4
Given this query:
with this setup
An exception is thrown:
with strack trace
However this query and setup works fine
It works but I don't want to change my code to less strongly typed, just to make my tests pass.
The text was updated successfully, but these errors were encountered: