Soenneker.Attributes.MapTo 11.0.40

Prefix Reserved
dotnet add package Soenneker.Attributes.MapTo --version 11.0.40
                    
NuGet\Install-Package Soenneker.Attributes.MapTo -Version 11.0.40
                    
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.Attributes.MapTo" Version="11.0.40" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Attributes.MapTo" Version="11.0.40" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Attributes.MapTo" />
                    
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.Attributes.MapTo --version 11.0.40
                    
#r "nuget: Soenneker.Attributes.MapTo, 11.0.40"
                    
#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.Attributes.MapTo@11.0.40
                    
#: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.Attributes.MapTo&version=11.0.40
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Attributes.MapTo&version=11.0.40
                    
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.Attributes.MapTo

A property marker that records the destination path used by a mapping component.

Installation

dotnet add package Soenneker.Attributes.MapTo

Usage

using Soenneker.Attributes.MapTo;

public sealed class CustomerColumns
{
    [MapTo("Customer.Profile.DisplayName")]
    public string? Name { get; init; }
}

Consumers retrieve the path through reflection:

using System.Reflection;

PropertyInfo property = typeof(CustomerColumns).GetProperty(
    nameof(CustomerColumns.Name))!;

string destinationPath = property
    .GetCustomAttribute<MapToAttribute>()!
    .Path;

This attribute is used by mapping-aware libraries such as Soenneker.DataTables.Extensions.ServerSideRequest, where an externally visible column can map to a different internal member path.

Important behavior

  • MapToAttribute can be applied to properties only.
  • Path is stored verbatim. This package does not parse the path, access members, or perform a mapping itself.
  • Path syntax and validation belong to the component reading the attribute.
  • The attribute is not repeatable on a property.
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.
  • net11.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Attributes.MapTo:

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
11.0.40 316 11/11/2026
11.0.39 767 10/26/2026
4.0.38 450 10/14/2026
4.0.37 189 10/14/2026
4.0.36 98 10/14/2026
4.0.35 121 10/13/2026
4.0.32 142 10/12/2026
4.0.31 119 10/12/2026
4.0.30 246 10/11/2026
4.0.29 772 9/24/2026
4.0.28 366 9/15/2026
4.0.27 457 9/12/2026
4.0.26 950 8/29/2026
4.0.24 127 8/29/2026
4.0.23 1,974 7/28/2026
4.0.22 825 7/16/2026
4.0.21 1,321 6/18/2026
4.0.20 922 6/5/2026
4.0.19 133 6/5/2026
4.0.18 1,193 4/22/2026
Loading failed

Upgrade .NET 11 release candidates to stable