Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft Edge More info about Internet Explorer and Microsoft Edge
Read in English
Read in English Edit
Twitter LinkedIn Facebook Email

OData in ASP.NET Web API

  • Article
  • 02/19/2020
  • 2 minutes to read

In this article

How to create OData endpoints in ASP.NET Web API for ASP.NET 4.x. OData is a data access protocol for the web. It provides a uniform way to query and manipulate data sets. Web API supports both Version 3 and Version 4 of the OData protocol.

  • OData v4

    • Create an OData v4 Endpoint
    • Create an OData v4 Client App (C#)
    • Entity Relations in OData v4
    • Actions and Functions in OData v4
    • Containment in OData v4
    • Create a Singleton in OData v4
    • Open Types in OData v4
    • Complex Type Inheritance in OData v4
  • OData v3

    • Creating an OData v3 Endpoint
    • Supporting Entity Relations in OData v3
    • OData Actions in Web API 2
    • Calling an OData Service From a .NET Client (C#)
  • Supporting OData Query Options in Web API 2

  • Using $select, $expand, and $value in Web API 2 OData

  • Routing Conventions in Web API 2 OData

  • Security Guidance for Web API 2 OData


Additional resources

  • Previous Versions
  • Blog
  • Contribute
  • Privacy
  • Terms of Use
  • Trademarks
  • © Microsoft 2023

Additional resources

In this article

  • Previous Versions
  • Blog
  • Contribute
  • Privacy
  • Terms of Use
  • Trademarks
  • © Microsoft 2023