"select new" 返回值问题
hi all,
我有一个linq 语句:
public ? GetSurveyAnswers(int SurveyId) { var result = from t1 in ctx.QuestionAnswers join t2 in ctx.SurveyQuestions on t1.PollId equals t2.Id where t2.Id == SurveyId select new { Question = t2.Question, Answer = t1.Answer, Votes = t1.Votes, }; return result; }