Questions tagged [simple.odata]

Simple.OData contains the implementation of Simple.Data OData adapter.

The adapter provides a great alternative to WCF Data Services client. It does not require generation of context or entity classes and fits RESTful nature of OData services.

Usful links:

29 questions
17
votes
2 answers

CRM do not support direct update of Entity Reference properties, Use Navigation properties instead

I am using Ms Dynamic Web Api with Simple OData. I need to add new record for link entities. I am using the below code snip and refer the documentation on https://github.com/object/Simple.OData.Client/wiki/Adding-entries-with-links var…
4
votes
2 answers

How to use certificate authentication in Simple.OData.Client?

How to do certificate authentication in Simple.OData.Client? I have X509Certificate2 which i want to use while calling the api. I use .net framework 4.6. I did some search and I came to know it is possible to add through HttpClientHandler. But I'm…
shanmuga raja
  • 685
  • 6
  • 19
3
votes
1 answer

Simple.Odata Client: Unable to load OData adapter from assembly Simple.OData.Client.V4.Adapter

I'm trying to consume Odata using Simple.Odata Client from a WPF Application. Below is my code: private async void button_Click(object sender, RoutedEventArgs e) { V4Adapter.Reference(); var client = new…
Rahul
  • 2,431
  • 3
  • 35
  • 77
3
votes
2 answers

Simple.OData.Client - Unable to invoke Action that accepts entity collection parameter

I get error "The parameter 'wheels' is of Edm type kind 'Collection'. You cannot call CreateCollectionWriter on a parameter that is not of Edm type kind 'Collection'." Below are details of my setup: Web API 2.2 OData v4 service : I have…
3
votes
1 answer

"Unauthorized" exception by Simple.OData.Client by accessing the SharePoint REST API with valid credentials from Xamarin PCL

Before I used Simple.OData.Client in our Xamarin project, I tried it with help of LINQPad. I was very impressed by the easiness to use it. When I built it into our Xamarin project I got exception by trying to get data from SharePoint's REST Api.…
Anton Kalcik
  • 2,107
  • 1
  • 25
  • 43
3
votes
2 answers

simple.odata.client query parameter

I have a web services API (with an OData endpoint called piperuns, using ODataController) that takes an optional query string (called projectNumber) like: http://localhost:59636/piperuns?projectNumber=1 I have a client based on Simple.OData.Client,…
Nelson Bond
  • 31
  • 1
  • 4
2
votes
0 answers

Simple.OData.Client Inheritance Issue

I am currently having an issue when using Simple.OData.Client to retrieve an object. Here's the call, using an instance of ODataClient RecurringObjectView model = await client.For("RecurringObjects") …
2
votes
2 answers

Aggregate Queries oData (Simple.oData)

I am trying to issue aggregate queries to my oData server, but i get errors, dispute having the exact same code as in documentation var product = await client .For("People") .Filter("FirstName ne 'Joni'") …
user2824991
  • 41
  • 1
  • 8
2
votes
1 answer

List of Collection Names in oData

I am little of confused how to get list of collection names from the following odata service http://services.odata.org/V4/Northwind/Northwind.svc/ I just want to get a list of all of the available collection names in the service And then I'd like to…
casillas
  • 16,351
  • 19
  • 115
  • 215
2
votes
2 answers

Problems when querying linked entities with properties that are nullable datetimetimeoffset

I'm using simple.odata.client v4 to access my odata rest api. The data model is quite complex. The problem I'm having is that I want to only get entities where related entities fulfilling a condition involving a property that is nullable…
jopa
  • 145
  • 1
  • 9
2
votes
1 answer

simple odata FindEntriesAsync method does not return collection

I'm using Simple.OData.Client library 3.3.0 in my Portable Class library (PCL) to retrieve data from my OData v3 service. And i'm sure that my service is working correctly. When i try to retrieve a collection of Units it returns me …
merdan
  • 1,229
  • 1
  • 11
  • 26
2
votes
2 answers

Simple.OData how to consume json?

I am currently consuming OData in a Xamarin App - and there is a significant performance issue on devices older than the iPhone 5. I believe it is because a simple request returns a significant amount of Xml - which has to be parsed by the…
Adam
  • 4,159
  • 4
  • 32
  • 53
1
vote
0 answers

OData how to insert new record with related data using Simple.Odata.V4.Client

I am working with an ASP.NET Core 3.1x API that is using the Microsoft.AspNetCore.Odata v7.4.0 NuGet, and I have an ASP.NET Core 3.1v web client that is using the Simple.OData.V4.Client v5.12.0 I am trying to Post an Order object with related…
1
vote
1 answer

Project to a Known Type using Simple.OData.Client Dynamic Syntax

Simple.OData.Client has a typed and dynamic (and basic) syntax. I like the typed, but I don't want to build out all my types. In the end I really only need two or so types in the results I get. But my queries need more types to properly filter the…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
1
vote
3 answers

Update only certain properties with Simple.OData.Client

I'm using Simple.OData.Client and I would like to update certain properties of an entity. Let's say I have following class in C#: [DataContract(Name = "entity")] public class MyEntity { [DataMember(Name = "propertyA")] public string…
Tamas Molnar
  • 797
  • 2
  • 9
  • 25
1
2