我正在尝试测试 NReco.PivotData 的内存立方体。我们现有的流程使用实体框架并且能够提取数据,但我找不到将其放入多维数据集的正确方法。
尝试将数据转换为列表、数组、可枚举和 json
var pvtData = new PivotData(
new[] { "closeDate", "opportunityName" },
new SumAggregatorFactory("amount"), true);
var allRows = (from c in newContext.MCrmOpportunity select c).AsEnumerable();
pvtData.ProcessData(allRows);
错误在最后一行。
错误 CS1503 参数 1:无法从 'System.Collections.Generic.IEnumerable' 转换为 'System.Collections.Generic.IEnumerable System.Collections.Generic.IDictionary>'