Soenneker.DataTables.Attributes.Column
11.0.39
Prefix Reserved
dotnet add package Soenneker.DataTables.Attributes.Column --version 11.0.39
NuGet\Install-Package Soenneker.DataTables.Attributes.Column -Version 11.0.39
<PackageReference Include="Soenneker.DataTables.Attributes.Column" Version="11.0.39" />
<PackageVersion Include="Soenneker.DataTables.Attributes.Column" Version="11.0.39" />
<PackageReference Include="Soenneker.DataTables.Attributes.Column" />
paket add Soenneker.DataTables.Attributes.Column --version 11.0.39
#r "nuget: Soenneker.DataTables.Attributes.Column, 11.0.39"
#:package Soenneker.DataTables.Attributes.Column@11.0.39
#addin nuget:?package=Soenneker.DataTables.Attributes.Column&version=11.0.39
#tool nuget:?package=Soenneker.DataTables.Attributes.Column&version=11.0.39
Soenneker.DataTables.Attributes.Column
DataTableColumnAttribute attaches DataTables column metadata to properties so a table-building layer can discover it through reflection.
Installation
dotnet add package Soenneker.DataTables.Attributes.Column
Usage
using Soenneker.DataTables.Attributes.Column;
public sealed class CustomerRow
{
[DataTableColumn(
Title = "Customer",
Data = "name",
Name = "name",
Searchable = true,
Orderable = true,
ResponsivePriority = 1,
Order = 0)]
public required string Name { get; init; }
[DataTableColumn(
Title = "Email",
Data = "contact.email",
DefaultContent = "—",
ClassName = "text-nowrap",
Width = "18rem",
Order = 1)]
public string? Email { get; init; }
[DataTableColumn(Visible = false, Order = 2)]
public Guid Id { get; init; }
}
Read the metadata from a property with normal reflection:
using System.Reflection;
PropertyInfo property = typeof(CustomerRow).GetProperty(nameof(CustomerRow.Name))!;
DataTableColumnAttribute? column = property.GetCustomAttribute<DataTableColumnAttribute>();
The package stores configuration only. Your application or a companion table builder must translate the attribute into the JavaScript DataTables column definition.
Defaults and conventions
Visibledefaults totrue.SearchableandOrderabledefault tofalse; opt in explicitly.OrderandResponsivePrioritydefault to-1, which is useful as an “unspecified” sentinel in the consuming mapper.DataandOrderDataareobjectbecause DataTables accepts more than one value shape. Attribute arguments are restricted by the CLR, so use strings, numeric values, or arrays that your mapper understands.- Property names and nested data paths are not validated by this package.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.DataTables.Attributes.Column:
| Package | Downloads |
|---|---|
|
Soenneker.DataTables.Extensions.Types
A collection of helpful Type extension methods relating to DataTable.js |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.39 | 208 | 11/11/2026 |
| 11.0.38 | 386 | 10/28/2026 |
| 11.0.37 | 158 | 10/26/2026 |
| 4.0.36 | 254 | 10/14/2026 |
| 4.0.35 | 135 | 10/14/2026 |
| 4.0.34 | 103 | 10/14/2026 |
| 4.0.33 | 116 | 10/13/2026 |
| 4.0.30 | 119 | 10/12/2026 |
| 4.0.29 | 112 | 10/12/2026 |
| 4.0.28 | 152 | 10/11/2026 |
| 4.0.27 | 280 | 9/24/2026 |
| 4.0.26 | 243 | 9/15/2026 |
| 4.0.25 | 192 | 9/12/2026 |
| 4.0.24 | 285 | 8/30/2026 |
| 4.0.23 | 125 | 8/29/2026 |
| 4.0.22 | 551 | 7/27/2026 |
| 4.0.21 | 374 | 7/16/2026 |
| 4.0.20 | 591 | 6/18/2026 |
| 4.0.19 | 475 | 6/5/2026 |
| 4.0.18 | 499 | 4/22/2026 |
Upgrade .NET 11 release candidates to stable