Hi every one I am new to OData, So I started practicing it from CookBook.
I created a new project from visual c# and named it as ConOData Test it's name space is also ConODataTest.
I installed some nugget packages They are
Microsoft.Bcl.Build
Microsoft.Bcl
Microsoft.Net.Http
Microsoft.OData.Core -Version 6.15.0
Simple.OData.Client -Version 4.24.0.1
Microsoft.Data.OData
Microsoft.OData.Client
Microsoft.IdentityModel.Clients.ActiveDirectory .
Then I Navigated to Tools | Extensions and Updates. Clicked on Online on the left and type OData Client Code in the Search Visual6. Studio Gallery text box. Select OData v4 Client Code Generator from the list and clicked on Download.7.
Then I added OData client file and modified meta data below
public const string MetadataDocumentUri = "usnconeboxax1aos.cloud.onebox.dynamics.com/data$metadata";
It even generated ODataClient.Cs file. Now I created a new class and wrote the following statements.
using System;
using System.Threading.Tasks;
using Microsoft.IdentityModel.Clients.ActiveDirectory;
using Microsoft.OData.Client;
using ConODataTest.Microsoft.Dynamics.DataEntities;
I am getting error 'type' or 'name space' does not exist in namespcace 'ConODatatest'
I added above references any help is appreciated