odata-v3

Web API OData Inlinecount not working

a 夏天 提交于 2020-01-19 04:48:05
问题 I am using the out of the box ValuesController in a ASP.NET Web API application public class ValuesController : ApiController { // GET api/values [Queryable(PageSize = 1)] public IQueryable<string> Get() { return new string[] { "value1", "value2", "value3", "value4", "value5" }.AsQueryable(); } } When I get http://localhost/api/values?$inlinecount=allpages This is the response <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

Web API OData Inlinecount not working

一笑奈何 提交于 2020-01-19 04:48:05
问题 I am using the out of the box ValuesController in a ASP.NET Web API application public class ValuesController : ApiController { // GET api/values [Queryable(PageSize = 1)] public IQueryable<string> Get() { return new string[] { "value1", "value2", "value3", "value4", "value5" }.AsQueryable(); } } When I get http://localhost/api/values?$inlinecount=allpages This is the response <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

Tool to visualise OData WebAPI / WCF Data Service?

£可爱£侵袭症+ 提交于 2019-12-08 06:42:18
问题 This question is about situation when you get access to the DataService and want to quickly explore what kind of functionality (EDM?) is available. Do we have any such tool that could help us to learn services? Something like building class diagram from the code during re-engineering... 回答1: LINQPad implements an "OData / WCF Data Services" connector. So, you can explore metadata and query data quikly. 回答2: I had the same issue that I wanted our customers to have a visualization of our OData

Tool to visualise OData WebAPI / WCF Data Service?

二次信任 提交于 2019-12-06 16:42:30
This question is about situation when you get access to the DataService and want to quickly explore what kind of functionality (EDM?) is available. Do we have any such tool that could help us to learn services? Something like building class diagram from the code during re-engineering... LINQPad implements an "OData / WCF Data Services" connector. So, you can explore metadata and query data quikly. I had the same issue that I wanted our customers to have a visualization of our OData service. There are paid/online variants like http://www.pragmatiqa.com/product_xodata.html but in our case our

Web API OData Inlinecount not working

半腔热情 提交于 2019-11-27 18:32:46
I am using the out of the box ValuesController in a ASP.NET Web API application public class ValuesController : ApiController { // GET api/values [Queryable(PageSize = 1)] public IQueryable<string> Get() { return new string[] { "value1", "value2", "value3", "value4", "value5" }.AsQueryable(); } } When I get http://localhost/api/values?$inlinecount=allpages This is the response <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <string>value1</string> </ArrayOfString> I have uncommented config.EnableQuerySupport(); Filtering,