Web API OData V3 `$inlinecount` fails

后端 未结 2 2010
别那么骄傲
别那么骄傲 2020-12-04 22:10

I am using the out of the box ValuesController in a ASP.NET Web API application

 public class ValuesController : ApiController
 {
     // GET api/values
             


        
2条回答
  •  暖寄归人
    2020-12-04 22:56

    In OData v4, $inlinecount=allpages has been replaced by $count=true.

    $count just works with returning an IQueryable in the recent versions of aspnet mvc.

提交回复
热议问题