This question is locked. New answers and comments are not allowed.
I am trying to populate a Gridview dynamically based on a DataServiceQuery/IQueryable. I am querying an OData based service.
I fill a FilterDescriptorCollection (myFilterDescriptors) via the Gridview filtering event.
The FilterDescriptors are fully populated.
The query is fully functional without the Where, but with it the RequestURI generated is the following:
http://localhost:59108/MyOdataService.svc/MyDatas()?$filter=false&$top=0&$inlinecount=allpages
and the Expression is:
Convert([10000]).IncludeTotalCount().Select(myTable=> myTable).Where(item => (null == "12")).Take(0)
The Member is always null.
Anybody else encounter this issue with FilterDescriptors before?
Cheers and thanks
IQueryable<
myData
> query = (IQueryable<
myData
>)(from mytable in mycontext.myDatas
.IncludeTotalCount()
select mytable )
.Where(myFilterDescriptors)
.Take(0);
I fill a FilterDescriptorCollection (myFilterDescriptors) via the Gridview filtering event.
The FilterDescriptors are fully populated.
The query is fully functional without the Where, but with it the RequestURI generated is the following:
http://localhost:59108/MyOdataService.svc/MyDatas()?$filter=false&$top=0&$inlinecount=allpages
and the Expression is:
Convert([10000]).IncludeTotalCount().Select(myTable=> myTable).Where(item => (null == "12")).Take(0)
The Member is always null.
Anybody else encounter this issue with FilterDescriptors before?
Cheers and thanks