有没有办法将以下内容映射到Dictionary<int,int>?它似乎产生了返回结果的行数,但它们没有值......
Sql sql = new Sql()
.Append("SELECT Count(*) as 'Answer Count', QuestionId")
.Append("FROM CF.Answers")
.Append("WHERE SurveyId = @0", surveyId)
.Append("GROUP BY QuestionId");
var result = database.Fetch<Dictionary<int,int>>(sql);
Run Code Online (Sandbox Code Playgroud)