var TotalFee = (from item in _dbEntities.MonthlyFees
where item.Year == DateTime.Now.Year &&
item.FeeStatus == true
select item).GroupBy(x =>x.MonthID);//.AsEnumerable().Sum(x => int.Parse(x));
我想对 nvarchar 类型的“费用”列求和,并按 MonthID 对其进行分组