我在LINQ查询中收到此错误,我不确定原因。当我运行表是空的但当我添加一个断点强制结果然后它工作查找并完美地添加所有数据
functions.cc:97:18: error: expected expression
argv[2] << { NanNew("second argument") };
^
答案 0 :(得分:0)
像这样添加ToList:
var results = TstarData.AsEnumerable().Join(M5Data.AsEnumerable(),
a => a.Field<String>("VehicleName"),
b => b.Field<String>("Unit_NO"),
(a, b) =>
{
DataRow row = ComTable.NewRow();
row.ItemArray = a.ItemArray.Concat(b.ItemArray).ToArray();
ComTable.Rows.Add(row);
return row;
}).ToList();