Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OData: limit query fields?

Tags:

odata

is there an option in OData/EF to limit the fields a user can perform queries on (with for example $filter)? We have got big tables and don't want to put indexes on all (combinations of) table columns.

like image 801
bertt Avatar asked Jul 01 '26 00:07

bertt


1 Answers

There's no built-in support for this type of limits. You can analyze the query yourself though. Either by looking at the incomming URL, or by analyzing the LINQ expression executed against the provider.

like image 196
Vitek Karas MSFT Avatar answered Jul 06 '26 10:07

Vitek Karas MSFT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!