a simple C# Console application utilizing public OData API from: https://www.odata.org/odata-services/ (use v4).
-
In this project, I concentrated on selecting a library to deal with oData.
-
In a real project, it would be implemented as a component, module, Extension or a Middleware.
-
This project also needs to be refactored based on the needs of your project and the architecture you've adopted.
Listing people
Allow searching/filtering people
Show details on a specific Person
Modifying data
Using xUnitTest to cover Requirements
Using Typed and ODataDynamic Expression
- download .Net 6 runtime from this address: https://dotnet.microsoft.com/download/dotnet/6.0/
- Clone the repo
git clone https://github.com/CodingBrushUp/oData.Client.git
go to the project root folder, run cmd
on url bar to open command prompt
run these commands:
dotnet restore
dotnet build
dotnet run --project ./oData.Client/2.oData.Client.csproj
dotnet test