OData Url Length Limitations

前端 未结 3 1684
终归单人心
终归单人心 2020-12-18 23:19

Browsers have limitation on the length of the URLs. IE has limitation that Url length should not exceed 2K characters.

When I form a $filter equals query, I could co

3条回答
  •  甜味超标
    2020-12-19 00:03

    I didn't find how the $batch is used. so I used $filter for sending a long request. Its pretty easy:

    DataServiceQuery ordersQuery = DataServiceQuery)this.context.CLIENTS.AddQueryOption("$filter", MyFilter());
    

    where MyFilter() return a string like this: "ID_CLIENT = 1 or ID_CLIENT = 2"

    NB: Dont use the uppercase AND. it leads to and error. use and not AND

提交回复
热议问题