EntitySetController currently returns an IQueryable<T> for its Get() function. When supplying the $select query, it'll throw an ArgumentException stating that it is unable to convert the SelectExpandWrapper to IQueryable.
I suppose the function should be changed to return an IEnumerable instead and set the QueryableAttribute on it.
I also think the functions that return T should be adapted to utilize SingleResult<T>?
Comments: Could you please post some code? The conversion from IQueryable<TEntity> to IQueryable<SelectExpandWrapper<TEntity>> happens outside the action in a filter. So, I cannot see what part of the code is throwing this exception.
I suppose the function should be changed to return an IEnumerable instead and set the QueryableAttribute on it.
I also think the functions that return T should be adapted to utilize SingleResult<T>?
Comments: Could you please post some code? The conversion from IQueryable<TEntity> to IQueryable<SelectExpandWrapper<TEntity>> happens outside the action in a filter. So, I cannot see what part of the code is throwing this exception.