odata

The connection “Connection” cannot be found. Verify that the connection manager has a connection with that name

落花浮王杯 提交于 2019-12-25 03:40:35
问题 I'm using an ODATA connection manager in SSIS to connect to a private Sharepoint Online, I manage to test the connection when I create the connection manager and to do a preview of my list when I'm in the designer. When I try to execute the package in VS I'm getting the following error: The connection "Connection" cannot be found. Verify that the connection manager has a connection with that name OData source failed validation and returned code 0xc020801A. I already created a new package and

Create an ODataQueryOptions programmatically

为君一笑 提交于 2019-12-25 03:17:08
问题 My API currently has some OData endpoints that use generic ODataQueryOptions to recieve an OData query... [HttpGet] [Route("search")] public object Search(ODataQueryOptions<MySearchableEntity> options) { return searchService.Search(options); } searchService then traverses the Expression of options.Filter.FilterClause to build a custom SQL query. It does similar stuff for the order, top and skip parameters. This is all working fine, but I now need it to parse a query for a dynamic type. Is it

Create an ODataQueryOptions programmatically

こ雲淡風輕ζ 提交于 2019-12-25 03:17:06
问题 My API currently has some OData endpoints that use generic ODataQueryOptions to recieve an OData query... [HttpGet] [Route("search")] public object Search(ODataQueryOptions<MySearchableEntity> options) { return searchService.Search(options); } searchService then traverses the Expression of options.Filter.FilterClause to build a custom SQL query. It does similar stuff for the order, top and skip parameters. This is all working fine, but I now need it to parse a query for a dynamic type. Is it

Date format in a table SAPUI5

感情迁移 提交于 2019-12-25 02:14:15
问题 I have created a table using SAPUI5 and I get the data to the table using ODATA service. BUt, I have a column which is of a type DATE and the format is something like this "Thu Jan 13 2011 01:00:00 GMT+0100 (Mitteleuropäische Zeit)" . I tried to google and I found this blog which is really nice. But here I see also a jsbin example where only a single data value has been used. But I need to select one whole column " Businessdate " and format it to something like this ´13.01.2014´. Any

DataServiceVersion conflict: The DataServiceVersion '1.0' is too low for the request. The lowest supported version is '3.0'

落爺英雄遲暮 提交于 2019-12-25 01:45:31
问题 Using this technique ( How to dynamic add filters to a LINQ query against an Odata Source in C# ) I dynamically build up a where clause in a LINQ query to my Odata endpoint. I do this often and it works great. However now my query contains some odata v3.0 features and i'm getting this error. The DataServiceVersion '1.0' is too low for the request. The lowest supported version is '3.0' I've build a simple reproduction using the only northwind endpoint at , and can reproduce it in standard C#

Got metadata in ODATA. what next?

假如想象 提交于 2019-12-25 00:25:35
问题 I am trying to fetch data from a service that i donot know much about. So i got its url like http://ABC.com/ABC.svc so i thouhgt to get metadata as http://ABC.com/ABC.svc/$metadata it gives me: <EntityType Name="E1"> - <Key> <PropertyRef Name="E1k1" /> </Key> < Property Name="E2" Type="Edm.String" Nullable="true" m:FC_TargetPath="SyndicationTitle" ..> <ComplexType Name="OptionV1"> <Property Name="Value" Type="Edm.Int32" Nullable="true" /> ... and a lot more. How do i find out what should come

OData support for iOS (alternative to OData4ObjC)

一笑奈何 提交于 2019-12-24 20:56:57
问题 I was planning on using OData4ObjC to access OData from my iPhone app. But it seems that OData4ObjC has become an inactive project ( no activity at all for almost a year and no support for anything past iOS 4 ). Does anyone else know of an equally robust OData Client library? 回答1: There is a ios6 fork on github for Odata4ObjC: https://github.com/ElizabethDuncan/OData4ObjC No real idea what changes etc. have been made to the original or why it was forked like this (as opposed to making the

How do I expose related data through a WCF Data Service?

空扰寡人 提交于 2019-12-24 19:26:14
问题 I have been reading through Alex D. James three year old blog posts as found here: http://blogs.msdn.com/b/alexj/archive/2010/02/24/creating-a-data-service-provider-part-8-relationships.aspx It is a wonderful blog series about exposing custom data through WCF Data Services. In the 8th post titled "Relationships" he talks about how to describe and expose related data. The problem with the post as pointed out by the one commenter is that he does it in memory, but does not explain how to

Call OData Service using JQuery Ajax and JSONP

核能气质少年 提交于 2019-12-24 18:22:03
问题 I'm trying to call an OData service using JQuery $.ajax and running into some issues. When I call the service with dataType: "jsonp", I get a status code of 200 and the data I need but it falls into my JQuery error: function(data) When I call the service with dataType: "json", I get nothing, the call to the service does not even happen. Here is my .ajax call: $.ajax({ beforeSend: function(request) { request.setRequestHeader("Accept", "application/json;charset=utf-8"); }, type: "GET", url:

Multiple POST methods OData Web API. Should/can it happen?

断了今生、忘了曾经 提交于 2019-12-24 17:48:51
问题 This question is perhaps an idealogical one... I have a requirement to create multiple records from an application calling an OData Web API through a service proxy. At the moment, I'm doing this by invoking the post method multiple times (through a service proxy) and then calling save changes to batch the requests. Eg. container.AddToColours(new Colour { Id = 1, Name = "Green" }); container.AddToColours(new Colour { Id = 2, Name = "Orange" }); container.SaveChanges(SaveChangesOptions.Batch);