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
<PackageReference Include="DXAutomap.AspNet.Data" Version="2.0.0" />
<PackageVersion Include="DXAutomap.AspNet.Data" Version="2.0.0" />
<PackageReference Include="DXAutomap.AspNet.Data" />
paket add DXAutomap.AspNet.Data --version 2.0.0
#r "nuget: DXAutomap.AspNet.Data, 2.0.0"
#:package DXAutomap.AspNet.Data@2.0.0
#addin nuget:?package=DXAutomap.AspNet.Data&version=2.0.0
#tool nuget:?package=DXAutomap.AspNet.Data&version=2.0.0
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. ProjectBeforeFilteris 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 | 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
- AutoMapperMIT (>= 14.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
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.