Open TonyValenti opened 6 years ago
@TonyValenti - In the case of returning IQueryable, for formatter is getting confused because it's not sure what to do with that result. IQueryable
There seesm to be an issue converting API.List() to IQueryable
@TonyValenti we're currently reviewing open issues in preparation for our upcoming WebAPI 7.x release. Is the behavior that you're seeing still applicable? Please review Rob's post above. Thank you.
Hi All, I'm working to expose a data set of strongly typed objects that represent JSON deserializations to Microsoft Excel using OData and ASPNET Core (In Excel, Data Ribbon > New Query > From Other Sources > From OData Feed) . I feel like I'm running in circles. I have a method that returns a List that I want to expose. Specifically, it looks like this:
When I decorate my call like this:
Lots of the data seems to appear, but I get errors like this showing in the log:
and when I try to expand a record, all I get from Excel is 'Error'. Also, it seems as though some queries actually modify the return type of TJSON into some object that only has select properties of TJson, which obviously doesn't work because when I
as IQueryable<TJson>
it becomes null.When I decorate my call like this:
I see these messages in the log:
And Excel shows a message like the following message:
I'm not sure if I'm running into a bug or something else. Can anyone point me in the right direction?