Showing results for ASP.NET Core - OData

Apr 28, 2025
Post comments count0
Post likes count4

ASP.NET Core OData Web API Template Preview Release

Samuel Wanjohi
Samuel Wanjohi

We are excited to announce the public preview release of the ASP.NET Core OData Web API Template Pack. This template helps you create an ASP.NET Core Web API project with OData support, providing a streamlined setup for .NET 8.0 and above. The following preview release is now available on NuGet: Key Features In...

Aug 8, 2023
Post comments count0
Post likes count0

Working with media resources in OData – Part 1

John Gathogo
John Gathogo

OData enables you to define data feeds that serve binary large object (BLOB) data. In OData lingo, this binary data is referred to as a media resource. A media resource (MR) is an unstructured piece of data or stream, e.g., a document, image, or video. It is requested from the data service separately from the entry in the feed to which it belongs, ...

Mar 14, 2023
Post comments count0
Post likes count1

Enable CBOR within ASP.NET Core OData

Sam Xu
Sam Xu

Introduction CBOR, which stands for Concise Binary Object Representation, is a data format whose design goals include the possibility of extremely small code size, small message size, and extensibility without the need for version negotiation (from cbor.io). CBOR is based on the wildly successful JSON (aka, JavaScript Object Notation) data model, ...

ASP.NET Core ODataCBORJSON
Mar 9, 2023
Post comments count7
Post likes count2

Customize OData payload serialization format within ASP.NET Core OData

Sam Xu
Sam Xu

Introduction JSON (aka, JavaScript Object Notation), a standard text-based format for representing structured data based on JavaScript object syntax, is the default representation for the OData requests and responses payload, see OData JSON format here. It’s a very popular format and widely used in most scenarios. However, there are customers who ...

ODataASP.NET Core ODataCSV
Sep 7, 2022
Post comments count0
Post likes count4

Extension: Omit null value properties in ASP.NET Core OData

Sam Xu
Sam Xu

Introduction By default, ASP.NET Core OData serializes a single value property as “null”, and a collection value property as an empty array if its value is null as such: It’s good for most scenarios. However, omitting those 'annoying' null-value properties from the OData response gets more and more attention. Along with the latest ASP.NET Core ...

ODataASP.NET Core OData
Apr 20, 2022
Post comments count2
Post likes count0

Tutorial: Build gRPC & OData in ASP.NET Core

Sam Xu
Sam Xu

Introduction gRPC (google Remote Procedure Call) is a high-performance remote procedure call framework that helps developers to build and consume remote services using the same way as calling local APIs. Different from gRPC, OData (Open Data Protocol) is an OASIS standard that defines a set of best practices for developers to build and consume RES...

ODataASP.NET CoregRPC
Feb 22, 2022
Post comments count0
Post likes count0

Customizing $filter for spatial data in ASP.NET Core OData 8

Kennedy Kangethe Munga
Kennedy Kangethe Munga

Background The OData URI parser parses the $filter query to a FilterClause. The translates an OData parse tree represented by a FilterClause to an Expression. The can be applied to an and passed to an ORM (e.g Entity Framework Core) for processing. The contains the default implementation on how the Expressions should be created. This cr...

Jan 11, 2022
Post comments count10
Post likes count0

$compute and $search in ASP.NET Core OData 8

Sam Xu
Sam Xu

Introduction OData system query options, such as $filter, $orderby, are a set of query string parameters that control the amount and order of the data returned for the resource identified by the URL. In the latest version of ASP.NET Core OData, two new system query options as follows are enabled: Along with other query options, $compu...

OData$compute$search
Aug 26, 2021
Post comments count1
Post likes count0

Adding support for $count segment in $filter collections in OData WebAPI

Kennedy Kangethe Munga
Kennedy Kangethe Munga

Introduction In OData core  v7.9.0 we added improved support for $count segment in $filter collection properties. Previously, versions of OData core had support for: We are constantly improving filtering capabilities in OData WebAPI. In OData WebApi v7.5.9 and OData WebApi v8.0.2, we have added support for the queries below According to t...

Aug 23, 2021
Post comments count3
Post likes count1

Build formatter extensions in ASP.NET Core OData 8 and hooks in ODataConnectedService

Sam Xu
Sam Xu

Introduction In this post, I will create formatter extensions in an OData web service and request/response hooks in an OData client application to generate/consume ETag control information. ETag (aka entity tag), one of OData control information that may be applied to an entity or collection in response, can be used in a subsequent request to avoi...

ASP.NET Core ODataODataConnectedService