相关疑难解决方法(0)

映射到PetaPoco的收藏?

有没有办法将以下内容映射到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)

c# petapoco

8
推荐指数
1
解决办法
3727
查看次数

标签 统计

c# ×1

petapoco ×1