DXAutomap.AspNet.Data 2.0.0

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

DXAutomap.AspNet.Data 2.0.0

Server-side DevExtreme data loading with AutoMapperMIT projections and runtime-context-aware custom accessors. This is the CivilPro fork of DevExtreme.AspNet.Data, based on the upstream 6.0.0 development line.

Requirements

  • .NET 10.
  • AutoMapperMIT 14.0.3 (installed as a dependency). Replace references to the original AutoMapper package in consuming projects; the namespace remains AutoMapper.

Install

dotnet add package DXAutomap.AspNet.Data --version 2.0.0

Pass the mapper and per-request projection parameters to the typed loader:

var result = await DataSourceLoader.LoadAsync<Entity, EntityDto>(
    query, loadOptions, cancellationToken, mapper, new { UserId, minsOffset });

The typed loader resolves mapped selectors using the requested DTO, mapper configuration and request parameters. Custom accessors retain precedence according to compiler registration order. Register and RegisterContext activate accessor lookup independently of global profile registration.

Changes from 1.16.0

  • Registration is safe under concurrent reads/writes and distinguishes actual .NET types, including same-name classes and closed generic types.
  • Runtime mapping parameters and destination-specific expressions are applied consistently to query processing.
  • Custom accessors support nested property paths, string conversion/case handling, null processing and group intervals.
  • Local selection works after DTO projection, including nested projections and selections above 32 fields.
  • Typed loads with different source/destination types require a mapper and report a missing mapper as ArgumentNullException.
  • ProjectBeforeFilter is retired. Its obsolete property is a no-op and omitted from JSON; the parser constant remains for source compatibility.

Nested segment hooks now receive the current nested expression/type. Whole-path hooks retain precedence. Plain loads without a destination/mapper retain legacy global profile lookup; use a typed load when multiple DTOs map the same source member differently.

The assembly remains unsigned. This release replaces the net7.0 target with net10.0 and requires consumer recompilation. See the release notes for validation scope and migration details.

Product 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. 
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
2.0.0 125 10/26/2026
1.16.0 3,676 7/16/2024
1.15.0 248 7/12/2024
1.14.0 723 3/21/2024
1.12.0 1,273 4/13/2023
1.11.0 330 4/12/2023
1.1.0 329 4/11/2023
1.0.0 331 4/11/2023

2.0.0 requires .NET 10 and AutoMapperMIT 14.0.3. Fixes registration concurrency and type collisions, runtime mapping parameters, DTO-specific and nested accessors, string/group processing, local DTO selection and mapper validation. ProjectBeforeFilter is retired. See docs/civilpro/RELEASE-2.0.0.md in the source repository.