Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

iQueryable Rest, netcore

$
0
0

I created a Rest get method.

I can get all the results of the method but I cannot filter, the filter is ignored.

An example is: http://localhost:55321/api/logging/getgenerallog?$filter=id le 10

I have a test queryable collection that has thousands of records and that query returns every one instead of just the ones with an id less than 10.

I did some reading and most o the reading seemed to indicate needing to install webapi.odata. This seems to be incompatible with netcore.

Is there an alternative?

Thank you.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>