Franz.Common.AutoMapper
1.2.64
dotnet add package Franz.Common.AutoMapper --version 1.2.64
NuGet\Install-Package Franz.Common.AutoMapper -Version 1.2.64
<PackageReference Include="Franz.Common.AutoMapper" Version="1.2.64" />
paket add Franz.Common.AutoMapper --version 1.2.64
#r "nuget: Franz.Common.AutoMapper, 1.2.64"
// Install Franz.Common.AutoMapper as a Cake Addin #addin nuget:?package=Franz.Common.AutoMapper&version=1.2.64 // Install Franz.Common.AutoMapper as a Cake Tool #tool nuget:?package=Franz.Common.AutoMapper&version=1.2.64
Franz.Common.AutoMapper
A utility library within the Franz Framework designed to streamline the integration and configuration of AutoMapper in .NET applications. This package includes helpful extensions for dependency injection, simplifying the setup and usage of AutoMapper profiles.
Features
- AutoMapper Dependency Injection:
ServiceCollectionExtensions
to easily register AutoMapper with all your profiles in a single call.
- Simplified AutoMapper Configuration:
- Automatically scan and load mapping profiles for your application.
Version Information
- Current Version: 1.2.64
- Part of the private Franz Framework ecosystem.
Installation
From Private Azure Feed
Since this package is hosted privately, configure your NuGet client:
dotnet nuget add source "https://your-private-feed-url" \
--name "AzurePrivateFeed" \
--username "YourAzureUsername" \
--password "YourAzurePassword" \
--store-password-in-clear-text
Install the package:
dotnet add package Franz.Common.AutoMapper --Version 1.2.64
Usage
1. Register AutoMapper with Dependency Injection
Use the ServiceCollectionExtensions
to register all your mapping profiles automatically:
using Franz.Common.AutoMapper;
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddAutoMapperProfiles(); // Automatically loads all profiles
}
}
2. Create AutoMapper Profiles
Define your mapping profiles as usual:
using AutoMapper;
public class OrderProfile : Profile
{
public OrderProfile()
{
CreateMap<Order, OrderDto>();
CreateMap<OrderDto, Order>();
}
}
The AddAutoMapperProfiles
method will scan and register all classes inheriting from Profile
.
Dependencies
This package depends on:
- AutoMapper (>= 12.0.0)
Contributing
This package is part of a private framework. Contributions are limited to the internal development team. If you have access, follow these steps:
- Clone the repository. @ https://github.com/bestacio89/Franz.Common/
- Create a feature branch.
- Submit a pull request for review.
License
This library is licensed under the MIT License. See the LICENSE
file for more details.
Changelog
Version 1.2.64
- Upgrade version to .net 9
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net9.0
- AutoMapper (>= 13.0.1)
- Franz.Common.DependencyInjection (>= 1.2.64)
- Franz.Common.Reflection (>= 1.2.64)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Franz.Common.AutoMapper:
Package | Downloads |
---|---|
Franz.Common.Bootstrap
Shared utility library for the Franz Framework. |
GitHub repositories
This package is not used by any popular GitHub repositories.