News

Oh Data! Microsoft Ships First Major OData Update in Nearly 8 Years

Microsoft today shipped a preview of OData .NET 8. The last major update, coming in the Microsoft.OData.Core NuGet package, was version 7.0, which was released in August of 2016.

OData, short for Open Data Protocol, is a standardized protocol for creating and consuming RESTful APIs, allowing for the querying and updating of data using HTTP commands and integration with various data services.

OData .NET 8 Preview 1
[Click on image for larger view.] OData .NET 8 Preview 1 (source: Microsoft).

"It has been almost 8 years since the last major release of OData .NET core libraries," said Microsoft's Clément Habinshuti in a post today (April 26) announcing OData .NET 8 Preview 1. "This release presents an opportunity for us to modernize our stack, address some technical debt and take better advantage of investments in .NET. To make adoption and upgrading to the new version smooth, we have opted to limit the number of breaking changes."

Of course, data technology (and every technology) has changed a lot since 2016, so breaking changes are hard to avoid. Thus today's post lists 15 breaking changes for the Core component, with others listed for the Client and other components.

The "most disruptive" change is moving on from the .NET Framework to .NET 8 and later.

"We understand that there are still a lot of people using .NET Framework," Habinshuti said. "For this reason, we will continue to maintain OData .NET v7 suite of libraries for the foreseeable future. We currently have no plans to drop support for OData Core 7.x. We will eventually stop adding new features after the 8.0 major release."

Planned changes for the Core component include:

  • Make ODataUtf8JsonWriter the default JSON writer implementation.
  • Use ValueTask<T> instead of Task<T> for async I/O operations where applicable.
  • Allow customers to include custom annotations in the payload that are not included in the include-odata-annotations preference header.
  • When writing the Scale attribute in XML CSDL, write variable in lowercase instead of Variable.
  • Change the ODataLibraryCompatibility enum into a flags enum where each bit will represent a different compatibility setting that can be used to enable some legacy serialization behavior.
  • Remove deprecated APIs and behavior flags.

A Microsoft 2022 DevBlogs post unveiled a next-generation OData offering called OData.Neo. It shows no published releases, though work on the project appears to have been done as recently as February.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube