HyperDev.Data.OData 1.2.1

dotnet add package HyperDev.Data.OData --version 1.2.1
                    
NuGet\Install-Package HyperDev.Data.OData -Version 1.2.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="HyperDev.Data.OData" Version="1.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HyperDev.Data.OData" Version="1.2.1" />
                    
Directory.Packages.props
<PackageReference Include="HyperDev.Data.OData" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add HyperDev.Data.OData --version 1.2.1
                    
#r "nuget: HyperDev.Data.OData, 1.2.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package HyperDev.Data.OData@1.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=HyperDev.Data.OData&version=1.2.1
                    
Install as a Cake Addin
#tool nuget:?package=HyperDev.Data.OData&version=1.2.1
                    
Install as a Cake Tool

HyperDev.Data.OData

Applies OData query strings ($filter, $orderby, $select, $expand, $top, $skip, $count) to Entity Framework Core queries, part of the HyperDev Fatum framework. Built on Microsoft.AspNetCore.OData, without OData routing or controllers.

  • DbContext.Query<T>(queryString, out count): runs an OData query on DbSet<T>; Query<T, TResult>(query, queryString, out count) starts from an existing IQueryable<T>
  • EDM model built from the EF Core model (GetEdmModel(), IModel.ToEdmModel()), cached per context type
  • IQueryable<T>.ApplyTo(queryString, out count) for plain CLR types, without a DbContext
  • The ordering of the source query is kept when $orderby is missing; keyless entities are supported
  • Optional Action<IServiceCollection> to register ODataQuerySettings or ODataValidationSettings

Installation

dotnet add package HyperDev.Data.OData

Quick start

ShopContext and Customer are defined as in HyperDev.Data; any EF Core DbContext works.

using HyperDev.Data;
using HyperDev.Data.OData;

using var ctx = factory.CreateContext<ShopContext>("Shop");

// e.g. Request.QueryString.Value in a controller: the string starts with '?'
IQueryable result = ctx.Query<Customer>("?$filter=City eq 'Rome'&$orderby=Name&$top=20&$count=true", out long? count);

count is set when the query string contains $count=true.

Requirements

The package references the ASP.NET Core shared framework (Microsoft.AspNetCore.App).

Target frameworks

.NET 8.0, .NET 10.0

License

MIT, © Ivan Senatore, Wemake Informatica srl. Third-party dependencies keep their own licenses (Microsoft.AspNetCore.OData, Entity Framework Core: MIT).

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on HyperDev.Data.OData:

Package Downloads
HyperDev.Web.Remoting

HyperDev Fatum Framework

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.1 119 11/7/2026
1.2.0 255 7/29/2026
1.0.3 283 5/22/2026
1.0.2 158 5/20/2026
1.0.1 183 3/4/2026
1.0.0 594 5/8/2025