This branch of the OData Web API will be maintained to keep the basic vNext sample working with the latest version of ASP.NET Core
Please do not use this branch if you wish to use a non ASP.NET Core version, see the master branch for that.
OData Web API (i.e., ASP.NET Web API OData) is a server library built upon ODataLib and Web API.
The project has a few branches, such as master, vNext, gh-pages.
The master branch has the following libraries, and the packages are available from NuGet or MyGet:
- OData v4 Web API (namespace
System.Web.OData
) - OData v3 Web API (namespace
System.Web.Http.OData
) - vNext (namespace
Microsoft.AspNet.OData
)
The vNext branch contains the latest code of OData vNext Web API.
The gh-pages branch contains the documenation source - in Markdown format - of the OData Web API.
cd OData
build
Each solution contains some test projects. Test projects use xUnit runner nuget package. Open the project, build it, and then test cases should appear in test explorer. Run all the tests in the test explorer. For running end-to-end tests you must open the solution as Administrator. More detail at this.
- In your NuGet Package Manager settings add the following package source:
- Package IDs
- Choose: Include Prerelease
- OData v4: Microsoft.AspNet.OData
- OData v3: Microsoft.AspNet.WebApi.OData
Please refer to the CONTRIBUTION.md.
Please visit the OData Web API pages.
Please refer to the ODataSamples WebApi.
Please refer to the How to debug.