News

OData 4.5 for Web API, ODataLib 6.10.0 Now Available

New versions of OData and ODataLib were released late last month on NuGet.

New versions of OData and ODataLib were released late last month via NuGet.

Open Data Protocol (OData) is a data access protocol that Microsoft helped to define and develop to allow data to connect data sources via Web sites. It essentially allows developers to create REST-based data services to be published and edited by Web clients using simple HTTP messages.

OData 4.5 for Web API has a number of new features:

  • Referential constraint support: It allows for defining referential constraint either using an attribute, by convention or programmatically.
  • Relax flag for version constraint: An IsRelaxedMatch flag allows for a relaxed version constraint. By default it's false, but setting it to true allows for requests to be from OData version 3 or 4 headers.
  • DateTime: There's also an API for configuring Time Zone on the server-side because DateTime isn't supported as a primitive type.

This is just a highlight, so be sure to read the blog post for a full list of features and bug fixes.

ODataLib 6.10.0 provides a number of components that can be used with OData v4 clients and services, as needed. New features include:

  • EdmLib support for EdmError/EdmLocation containing a file name 
  • Client support for getting instance annotations from payload or getting metadata annotations
  • Client support for posting an action with entity-valued parameters that only contain setted properties

Descriptions of these features, as well as bug fixes, can be seen on the NuGet site; ODataLib 6.10.0 itself can be downloaded and contributed to through CodePlex.

About the Author

You Tell 'Em, Readers: If you've read this far, know that Michael Domingo, Visual Studio Magazine Editor in Chief, is here to serve you, dear readers, and wants to get you the information you so richly deserve. What news, content, topics, issues do you want to see covered in Visual Studio Magazine? He's listening at [email protected].

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