OData “where ID in list” query

前端 未结 4 1632
天命终不由人
天命终不由人 2020-12-13 06:05

I have an OData service where I\'m trying to filter by a list of IDs; the SQL equivalent would be something like:

SELECT * FROM MyTable WHERE TableId IN (100         


        
4条回答
  •  Happy的楠姐
    2020-12-13 06:11

    Expanding on MCattle suggestion if we need more 50 or 60 ids then its advisable to do in 2 or more parallel calls and add them to concurrent dictionary or something similar as we get results from server. Though this increases the number of calls to server but because we are slowly moving to cloud environment it shouldn't be a big problem in my opinion.

提交回复
热议问题