.net – is there a way to query OData with a linq query

I’m using [EnableQuery] and returning an IQueryable from my api controller like this:

public IQueryable<Category> Get()
    return getCategories().AsQueryable();

Is it possible to consume this odata url using linq, e.g. something like:

var res = await getOdata("Category").Where(item => item.Size > 100).ToArrayAsync();

does something like this exist ? I could only find examples of odata api’s being built and consumed via string parameters but no linq.

Read more here: Source link