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
I tried to create a BoolTypeHandler but it was not even called by dapper
{
...SqlMapper.AddTypeHandlerImpl(typeof(bool),newBoolTypeHandler(),true);
...}publicclassBoolTypeHandler:SqlMapper.TypeHandler<bool>{publicoverridevoidSetValue(IDbDataParameterparameter,boolvalue){parameter.Value=value?(byte)1:(byte)0;}publicoverrideboolParse(objectvalue){returnbool.Parse((string)value);// This is just an example}}
sqlQuery variable
Dapper call
That is causing an exception.
I tried to create a BoolTypeHandler but it was not even called by dapper