my sql is :
select (select count(*) from TblRMember where sex=1) male,
(select count(*) from TblRMember where sex=2) female,
(select count(*) from TblRMember where sex=0) unkown
I want Dapper.Net to return a Dictinary like this:
Keys:male,female,nukown
Value:10,30,50
I have see How to map to a Dictionary object from database results using Dapper Dot Net? ,but that can not work!
How to use ToDictionary or other way to implement I want
var myDictionary = sqlConnection.Query(strSql).ToDictionary(??);
Thanks!