Showing results for 2019 - OData

Dec 30, 2019
Post comments count4
Post likes count0

$select Enhancement in ASP.NET Core OData

Sam Xu
Sam Xu

The release of ASP.NET Core OData v7.3 brings a ton of improvements to $select functionality. In this article, I’d like to introduce some of the new features of $select and its usages in combination with other query options like $filter, $top, $skip, $orderby, $count and $expand. This tutorial assumes that you already have the knowledge to build a...

ODataASP.NET CoreWeb API
Dec 21, 2019
Post comments count27
Post likes count0

Experimenting with OData in ASP.NET Core 3.1

Hassan Habib
Hassan Habib

A lot of developers have asked me recently about OData compatibility with ASP.NET Core 3.0 and again with .NET Core 3.1 after it’s very recent release. This demand became more and more critical with the recent announcement from the .NET team around .NET Core 2.2 reaching the end of its life on Dec 23rd of this year. And because of all of that...

Oct 25, 2019
Post comments count6
Post likes count0

Optimizing Web Applications with OData $Select

Hassan Habib
Hassan Habib

OData as an API technology comes in with so many options that gives API consumers the power to shape, filter, order and navigate through the data with very few lines of code. In my previous articles I talked in details about how to enable OData on your existing ASP.NET Core API using the EDM model, in addition to that I have provided a code exam...

Aug 12, 2019
Post comments count1
Post likes count0

Customize Control Information for full metadata requests in odata.net

Kanish Manuja
Kanish Manuja

Background OData supports three metadata levels for the JSON format, namely - No Metadata as the name suggests does not include control information other than nextLink and count. Minimal metadata responses usually include context, etag, deltalink etc. whereas full metadata responses contain all the control information like navigat...

Aug 7, 2019
Post comments count3
Post likes count0

Using SkipToken for Paging in Asp.Net OData and Asp.Net Core OData

Kanish Manuja
Kanish Manuja

Loading large data can be slow. Services often rely on pagination to load the data incrementally to improve the response times and the user experience. Paging can be server-driven or client-driven: Client-driven paging In client-driven paging, the client decides how many records it wants to load and asks the server for that many records. That is ...

Aug 4, 2019
Post comments count6
Post likes count0

Integrating Cosmos DB with OData (Part 2)

Hassan Habib
Hassan Habib

In the first article of this series, we talked about integrating Cosmos DB with ASP.NET Core application powered by OData using a pre-built solution that was using Cosmos Client to run full CRUD operations. But that's not the only way we can work with Cosmos DB from ASP.NET Core - there are two more approaches that we could follow to work with t...

Jul 27, 2019
Post comments count5
Post likes count0

Integrating Cosmos DB with OData (Part 1)

Hassan Habib
Hassan Habib

We talked in previous articles about the pluggability of OData with any storage technology regardless of its schema, whether it’s a SQL-based storage, NoSQL, In-Memory or simply a file on a hard-drive. This power of OData enables developers to work with powerful, planet-scale storage technologies such as Cosmos DB. In this article we are goin...

May 19, 2019
Post comments count4
Post likes count0

Enabling Pagination in Blazor with OData

Hassan Habib
Hassan Habib

Summary We talked in a previous article about enabling OData in your existing ASP.NET Core API using EDM. One of the biggest advantages of following that method is to be able to take advantage of functionality such as count to enable an on-demand function in almost every web application such as navigation. In this article, we are going to ta...

May 19, 2019
Post comments count19
Post likes count0

Simplifying EDM with OData

Hassan Habib
Hassan Habib

Summary In a previous article, I talked about how you can leverage the power of OData with your existing ASP.NET Core API to bring in more features to your API consumers. But there are different ways you could enable OData on your existing API that are just as simple but offers more powerful features than overriding your existing routes and ena...

Apr 27, 2019
Post comments count48
Post likes count0

Supercharging ASP.NET Core API with OData

Hassan Habib
Hassan Habib

Summary In this article, I’m going to show you how you can supercharge your existing ASP.NET Core APIs with OData to provide better experience for your API consumers with only 4 lines of code. For the purpose of this tutorial please clone our demo project WashingtonSchools so you can follow up and try the different features we are going to talk...