IBeam.Services.AutoMapper
2.8.1
See the version list below for details.
dotnet add package IBeam.Services.AutoMapper --version 2.8.1
NuGet\Install-Package IBeam.Services.AutoMapper -Version 2.8.1
<PackageReference Include="IBeam.Services.AutoMapper" Version="2.8.1" />
<PackageVersion Include="IBeam.Services.AutoMapper" Version="2.8.1" />
<PackageReference Include="IBeam.Services.AutoMapper" />
paket add IBeam.Services.AutoMapper --version 2.8.1
#r "nuget: IBeam.Services.AutoMapper, 2.8.1"
#:package IBeam.Services.AutoMapper@2.8.1
#addin nuget:?package=IBeam.Services.AutoMapper&version=2.8.1
#tool nuget:?package=IBeam.Services.AutoMapper&version=2.8.1
IBeam.Services.AutoMapper
IBeam.Services.AutoMapper bridges IBeam's IModelMapper<TEntity,TModel> abstraction to AutoMapper.
dotnet add package IBeam.Services.AutoMapper
When To Use This
- You use
IBeam.Servicesbase services and want AutoMapper for entity/model mapping. - You already maintain AutoMapper profiles in your application.
- You want services to depend on
IModelMapper<TEntity,TModel>instead of AutoMapper directly.
What This Package Contains
| Area | Type(s) | Purpose |
|---|---|---|
| Mapper adapter | AutoMapperModelMapper<TEntity,TModel> |
Implements IBeam model mapping through AutoMapper. |
| DI | AddIBeamAutoMapper(params Assembly[] profileAssemblies) |
Registers AutoMapper and the IBeam mapper abstraction. |
Architecture Fit
API <-- DTO/model object --> Service <-- Entity --> Repository
Mapping supports the service boundary. Entities should represent persistence shape. Models/DTOs can represent the API or service-facing shape. Business rules should not be hidden in AutoMapper profiles.
Quick Start
using IBeam.Services.AutoMapper;
builder.Services.AddIBeamAutoMapper(typeof(ProductMappingProfile).Assembly);
Example profile:
public sealed class ProductMappingProfile : Profile
{
public ProductMappingProfile()
{
CreateMap<ProductEntity, ProductDto>().ReverseMap();
}
}
Example service registration:
builder.Services.AddScoped<ProductsService>();
The base service can then receive IModelMapper<ProductEntity, ProductDto>.
Data Storage
This package does not create tables or repositories. It only maps objects.
Service Operations, Auditing, And Permissions
Mapping is not an operation boundary. Service methods should still be tagged with [IBeamOperation] and should pass database-shaped before/after data into audit calls when needed.
Extended Docs And Agent Guidance
- AI prompt:
.agent/prompt.md - Root implementation guide:
../.agent/implementation-guide.md - Service logging and audit:
../docs/service-logging-and-audit.md - Service operation permissions:
../docs/service-operation-permissions.md
Agents should keep mapping straightforward and put validation/rules in services.
Troubleshooting
| Problem | Likely Cause | Fix |
|---|---|---|
| Mapper fails at runtime | Profile assembly was not registered | Pass the profile assembly to AddIBeamAutoMapper. |
| Business behavior is hard to debug | Rules live in mapping profiles | Move rules into the service layer. |
| Audit data looks like API output | DTO was audited instead of entity | Audit entity-shaped before/after data. |
Version Notes
- Targets
net10.0. - Uses AutoMapper.
- Package version is assigned by the repository release workflow.
| 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
- AutoMapper (>= 16.1.1)
- IBeam.Services (>= 2.8.1)
- Microsoft.Extensions.Options (>= 10.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.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.9.1 | 37 | 7/23/2026 |
| 2.9.0 | 42 | 7/21/2026 |
| 2.8.2 | 42 | 7/21/2026 |
| 2.8.1 | 37 | 7/21/2026 |
| 2.8.0 | 42 | 7/21/2026 |
| 2.7.0 | 79 | 7/21/2026 |
| 2.6.0 | 89 | 7/20/2026 |
| 2.5.0 | 87 | 7/17/2026 |
| 2.4.2 | 91 | 7/16/2026 |
| 2.4.1 | 89 | 7/14/2026 |
| 2.4.0 | 104 | 6/24/2026 |
| 2.3.0 | 102 | 6/24/2026 |
| 2.2.0 | 104 | 6/23/2026 |
| 2.1.0 | 104 | 6/23/2026 |
| 2.0.68 | 103 | 6/23/2026 |
| 2.0.66 | 100 | 6/22/2026 |
| 2.0.65 | 105 | 6/22/2026 |
| 2.0.64 | 108 | 6/17/2026 |
| 2.0.63 | 109 | 6/16/2026 |
| 2.0.62 | 111 | 6/16/2026 |