Soenneker.DataTables.Attributes.Searchable
4.0.24
Prefix Reserved
dotnet add package Soenneker.DataTables.Attributes.Searchable --version 4.0.24
NuGet\Install-Package Soenneker.DataTables.Attributes.Searchable -Version 4.0.24
<PackageReference Include="Soenneker.DataTables.Attributes.Searchable" Version="4.0.24" />
<PackageVersion Include="Soenneker.DataTables.Attributes.Searchable" Version="4.0.24" />
<PackageReference Include="Soenneker.DataTables.Attributes.Searchable" />
paket add Soenneker.DataTables.Attributes.Searchable --version 4.0.24
#r "nuget: Soenneker.DataTables.Attributes.Searchable, 4.0.24"
#:package Soenneker.DataTables.Attributes.Searchable@4.0.24
#addin nuget:?package=Soenneker.DataTables.Attributes.Searchable&version=4.0.24
#tool nuget:?package=Soenneker.DataTables.Attributes.Searchable&version=4.0.24
Soenneker.DataTables.Attributes.Searchable
DataTableSearchableAttribute marks model properties that a server-side DataTables query layer may include in search operations.
Installation
dotnet add package Soenneker.DataTables.Attributes.Searchable
Usage
using Soenneker.DataTables.Attributes.Searchable;
public sealed class CustomerRow
{
[DataTableSearchable]
public required string Name { get; init; }
[DataTableSearchable]
public required string Email { get; init; }
public string? InternalNote { get; init; }
}
Use reflection to build an explicit allow-list for a server-side search expression:
using System.Reflection;
PropertyInfo[] searchableProperties = typeof(CustomerRow)
.GetProperties(BindingFlags.Instance | BindingFlags.Public)
.Where(property => property.IsDefined(typeof(DataTableSearchableAttribute)))
.ToArray();
This package does not parse requests or generate queries. The consuming layer decides how each marked type is searched. Parameterize user-supplied search text, and avoid applying string operations indiscriminately to dates, numbers, or identifiers.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.DataTables.Attributes.Searchable:
| Package | Downloads |
|---|---|
|
Soenneker.DataTables.Extensions.ServerSideRequest
A collection of helpful DataTableServerSideRequest extension methods |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.24 | 171 | 9/12/2026 |
| 4.0.23 | 837 | 8/30/2026 |
| 4.0.22 | 98 | 8/29/2026 |
| 4.0.21 | 161 | 7/28/2026 |
| 4.0.20 | 116 | 7/16/2026 |
| 4.0.19 | 132 | 6/18/2026 |
| 4.0.18 | 117 | 6/5/2026 |
| 4.0.17 | 125 | 4/22/2026 |
| 4.0.16 | 131 | 3/12/2026 |
| 4.0.15 | 123 | 3/12/2026 |
| 4.0.14 | 135 | 3/12/2026 |
| 4.0.13 | 131 | 3/12/2026 |
| 4.0.12 | 118 | 3/10/2026 |
| 4.0.11 | 127 | 3/9/2026 |
| 4.0.10 | 123 | 3/9/2026 |
| 4.0.9 | 120 | 3/9/2026 |
| 4.0.8 | 134 | 3/4/2026 |
| 4.0.7 | 140 | 1/2/2026 |
| 4.0.6 | 430 | 11/21/2025 |
| 4.0.5 | 223 | 11/6/2025 |
Use NuGet trusted publishing in publishing workflows