Entity framework with OData(Web API) is sending Order By clause By default to Sql Query

前端 未结 1 404
清酒与你
清酒与你 2020-12-18 06:07

I am using Web Api with OData. and I have an entity defined in an EF 5.0.
I am sending very simple request to Controller::

 $.ajax({url: \"/odata/Details         


        
相关标签:
1条回答
  • 2020-12-18 06:59

    Im not sure if this is the right answer, but im assuming that the odata service is attempting to maintain a stable sort ordering by ordering on all properties within your model.

    Therefore try

    [Queryable(EnsureStableOrdering=false)]
    
    0 讨论(0)
提交回复
热议问题