Looking for a sample or tutorial for the new OData bits

Gil Shalit 6 Reputation points
2025-01-01T10:00:20.58+00:00

I want to write an Odata 4 compliant C# isolated mode serverless function endpoint. I am confused by the recent announcements here about ASP.NET Core OData 9 and OData .NET 8 - which should use?

Are there any tutorials or samples for this? All I can find are materials abour earlier versions.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,019 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,724 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ping Ni-MSFT 4,810 Reputation points Microsoft Vendor
    2025-01-02T02:19:34.88+00:00

    Hi @Gil Shalit,

    If your project target framework is under .NET 8, you could only use Odata 8 in ASP.NET Core.

    Tutorials you could refer to: ASP.NET Core OData 8.

    If your project target framework is .NET 8 or later, you could consider using Odata 9.

    For Odata 9 you could refer to ASP.NET Core Odata 9 .


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Rena


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.