IBeam.Services.AutoMapper 2.9.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package IBeam.Services.AutoMapper --version 2.9.0
                    
NuGet\Install-Package IBeam.Services.AutoMapper -Version 2.9.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="IBeam.Services.AutoMapper" Version="2.9.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="IBeam.Services.AutoMapper" Version="2.9.0" />
                    
Directory.Packages.props
<PackageReference Include="IBeam.Services.AutoMapper" />
                    
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 IBeam.Services.AutoMapper --version 2.9.0
                    
#r "nuget: IBeam.Services.AutoMapper, 2.9.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 IBeam.Services.AutoMapper@2.9.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=IBeam.Services.AutoMapper&version=2.9.0
                    
Install as a Cake Addin
#tool nuget:?package=IBeam.Services.AutoMapper&version=2.9.0
                    
Install as a Cake Tool

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.Services base 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

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 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.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
Loading failed