jjzjj

reportRowItems

全部标签

c# - 查询主体必须以 select 子句或 group 子句结尾为什么这里会出错?

我的linq语句有什么问题,我做错了什么?if(this.selectLBU.HtUsers.Any()){reportRowItems=(fromrinreportRowItemsfrombuinr.User.HtBusinessUnitswherebu.LocationBusinessUnitId==selectLBU.LocationBusinessUnitId).ToList(); 最佳答案 您需要添加select子句来告诉您需要从查询中获取哪些数据。这msdnarticle描述了基本的查询操作和结构。reportRowIt