【发布时间】:2016-03-22 10:17:00
【问题描述】:
我有一个DataService,其中包含以下可查询:
public IQueryable<MyData> MyDataList => myDataList.AsQueryable();
我在Excel 2016 中连接到此数据服务。一切正常,但是当列表为 empty 时,我收到以下错误消息。
The query did not run or the Data Model could not be accessed.
Here's the error message we got:
An Evaluate statement cannot return a table without columns
似乎客户端 (Excel) 需要一个对象来成功确定列。为什么? 是否可以在不需要对象的情况下告诉客户有关列的信息?
【问题讨论】:
-
转载。 this 有关系吗?
-
看起来同样的问题。确实需要某种元数据才能成功填充列。
标签: excel odata wcf-data-services