IQueryable<dynamic> is it supported?
I have an IQueryable
here is my code
[HttpGet]
public PageResult GetforGrid(ODataQueryOptions
var dynamicQueryable = dynamicTableRep.GetAllAsQueryable();
IQueryable<dynamic> qResult = dynamicQueryable.LinqToQuerystring(this.Request.RequestUri.Query, true);
var results = options.ApplyTo(qResult);
return new PageResult<dynamic>(results as IEnumerable<dynamic>,
Request.GetNextPageLink(), Request.GetInlineCount());
}
catch (Exception ex)
{
Logs.Log(ex);
return null;
}
}
Hi there,
I'll need to get back to you on whether or not use of dynamic is possible. At this time it is not officially. supported
I know for sure that you can use LinqToQuerystring against an IDictionary<string, object> so if the data structure underlying the dynamic object can be put into that form then you may be able to do things that way.
Pete
@BakriBadawi may i know the solution for this error?
Until now i couldn't find a solution for this error.
@BakriBadawi for me it is working fine now, I am not sure, how it It looks like problem with URL. I will try to reproduce it & let you know if any luck. can you share your url pattern to examine?
@shivu333 this is smple of the URL ?$filter=substringof(%27a%27,Prefix)&$inlinecount=allpages&$top=10&$skip=0
Well, now I get this feeling:

Oh nooo! I'll admit I haven't had the time to invest in this recently, my comment from 2014 should still be relevant though.
Thanks for the quick answer ;) It was more directed to @shivu333 because its working for him, but we dont know how...