DbExpressionBinding requires an input expression with a collection ResultType. 参数名: input
使用linq多表连接遇到的问题:
解决方案:注释为出错代码,更改使用GroupBy解决问题
context.ERG_TipOffsInfo.GroupBy(x => x.Data,(Data,CountNum) => new { Data =Data,CountNum = CountNum.Count() }) //( // from t in context.ERG_TipOffsInfo // group t by t.Data into g // select new // { // Data = g.Key, // CountNum = g.Key.Count() // } // )