Questions tagged [simple.odata.client]

35 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…
7
votes
2 answers

Simple Odata Client - How to add oAuth Token in each request header?

In Microsoft oData v4 proxy client, there is an option to add auth token into each request. It can be achieved by following way: var container = new Default.Container(new Uri(http://localhost:9000/)); //Registering the handle to the BuildingRequest…
Rahul
  • 2,431
  • 3
  • 35
  • 77
4
votes
1 answer

"The property {property} does not exist on type {type}" - but it does. OData configuration issue?

I have a Blazor WASM application that has an OData back-end. I'm trying to configure the NavigationProperty of one of my models so that I can use the $expand= query parameter to return more data but I keep getting the following error when trying to…
Bigg_T76
  • 61
  • 1
  • 8
4
votes
2 answers

Prevent Simple.OData.Client from fetching the whole structure

I am using simple.odata.client in my application. The problem is the client is retrieving the whole structure at the first call which is too large (more than 30MB) and so I am getting a timeout? Is there any parameter/setting to prevent the client…
Yasser
  • 864
  • 1
  • 9
  • 19
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
4
votes
1 answer

Json.Net serialize/deserialize Class Name attribute C#

Sorry for the (maybe) trivial question but, I'm trying to consume a web service where the entities and my data model classes are named different. I want to keep my model .Net Class name and use a Json Attribute name to map,…
Richard
  • 128
  • 2
  • 3
  • 10
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
1 answer

How to expand hierarchical data with simple.odata.client

In our data model we have hierarchical data. We have for example the following structure: Product : Category (one to many) Category : CategoryType (one to many) If we want to have a certain Product's related categories and also each…
jopa
  • 145
  • 1
  • 9
2
votes
0 answers

Specify metadata cache expiry for Simple.Odata.Client?

Is there a way with Simple.Odata.Client to specify the expiry of the metadata cache? Within ConfigureServices I'm making an initial request to GetMetadataDocumentAsync to preload the metadata document. I would like to expire the cache after n…
iomdesign
  • 73
  • 2
  • 9
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") …
1
vote
1 answer

OData: Change URL value for entity type in EDM Model

I'm working with a ASP.NET Core Web Api project that uses OData for the exposed endpoints and are consumed with a Simple.OData.Client. Some of my endpoints are: http://{baseUrl}/odata/Vehicle --> this works perfectly But I'm having issues with…
Mauro Bilotti
  • 5,628
  • 4
  • 44
  • 65
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
0 answers

simple odata client filter nested collection

I have the following odata query: /Places?$filter=CountryCode eq 'de'&$expand=Images($filter=IsCover eq true) The Places has a collection of Images. This query returns back all places for "DE" and for each place only the Image that has the property…
alaa_sayegh
  • 2,141
  • 4
  • 21
  • 37
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
vote
0 answers

Retrieving CRM OptionSet field using Simple.odata.client library

Can anyone provide the way to use it with Simple.Odata.Client library. I am using it as follows i.e. string url = "EntityDefinitions(LogicalName='contact')/Attributes(LogicalName='new_country')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?…
Naveed Anwar
  • 186
  • 1
  • 8
1
2 3