Soenneker.DataTables.Extensions.ServerSideRequest 11.0.277

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.DataTables.Extensions.ServerSideRequest --version 11.0.277
                    
NuGet\Install-Package Soenneker.DataTables.Extensions.ServerSideRequest -Version 11.0.277
                    
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="Soenneker.DataTables.Extensions.ServerSideRequest" Version="11.0.277" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.DataTables.Extensions.ServerSideRequest" Version="11.0.277" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.DataTables.Extensions.ServerSideRequest" />
                    
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 Soenneker.DataTables.Extensions.ServerSideRequest --version 11.0.277
                    
#r "nuget: Soenneker.DataTables.Extensions.ServerSideRequest, 11.0.277"
                    
#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 Soenneker.DataTables.Extensions.ServerSideRequest@11.0.277
                    
#: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=Soenneker.DataTables.Extensions.ServerSideRequest&version=11.0.277
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.DataTables.Extensions.ServerSideRequest&version=11.0.277
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.DataTables.Extensions.ServerSideRequest

Converts a DataTables server-side request into RequestDataOptions while mapping client column names to an explicit server-owned search and ordering allow-list.

Installation

dotnet add package Soenneker.DataTables.Extensions.ServerSideRequest

Define the queryable model

using System.Text.Json.Serialization;
using Soenneker.Attributes.MapTo;
using Soenneker.DataTables.Attributes.Orderable;
using Soenneker.DataTables.Attributes.Searchable;

public sealed class CustomerRow
{
    [JsonPropertyName("name")]
    [MapTo("contact.name")]
    [DataTableSearchable]
    [DataTableOrderable]
    public required string Name { get; init; }

    [JsonPropertyName("createdAt")]
    [MapTo("createdAt")]
    [DataTableOrderable]
    public DateTimeOffset CreatedAt { get; init; }

    public string? InternalNote { get; init; }
}

JsonPropertyName is the external name sent by DataTables. MapTo optionally identifies the field understood by the downstream data API. Without MapTo, the external name is used.

Only properties marked with DataTableSearchable can become search fields or exact-match column filters. Only properties marked with DataTableOrderable can become order clauses. Client flags alone do not grant access.

Convert the request

using Soenneker.DataTables.Extensions.ServerSideRequest;
using Soenneker.Dtos.RequestDataOptions;

RequestDataOptions options = request.ToRequestDataOptions<CustomerRow>();

The conversion:

  • uses a default page size of 50 when Length is zero or negative;
  • caps the page size at 250;
  • trims empty global and column search values to null;
  • ignores unknown columns, invalid column indices, and sort directions other than asc or desc;
  • ignores properties marked with JsonIgnore and rejects duplicate external names rather than choosing one arbitrarily;
  • carries the continuation token through unchanged.

The result is still query input. The downstream repository should validate mapped paths it supports, enforce its own cost limits, and treat the continuation token and search text as untrusted. The DataTables regex flags are not translated into regex queries.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.278 144 11/3/2026
11.0.277 81 11/3/2026
11.0.276 83 11/2/2026
11.0.275 163 10/29/2026
11.0.274 100 10/29/2026
11.0.273 90 10/29/2026
11.0.272 177 10/26/2026
11.0.271 106 10/26/2026
11.0.270 92 10/26/2026
11.0.269 90 10/26/2026
11.0.268 89 10/26/2026
11.0.267 97 10/26/2026
11.0.266 96 10/26/2026
4.0.265 338 10/15/2026
4.0.264 95 10/15/2026
4.0.263 101 10/15/2026
4.0.262 114 10/14/2026
4.0.261 119 10/14/2026
4.0.257 128 10/14/2026
4.0.256 103 10/14/2026
Loading failed

Updated Multiple NuGet packages