SimpleAutoMapperSuzyklementy 1.3.0
dotnet add package SimpleAutoMapperSuzyklementy --version 1.3.0
NuGet\Install-Package SimpleAutoMapperSuzyklementy -Version 1.3.0
<PackageReference Include="SimpleAutoMapperSuzyklementy" Version="1.3.0" />
paket add SimpleAutoMapperSuzyklementy --version 1.3.0
#r "nuget: SimpleAutoMapperSuzyklementy, 1.3.0"
// Install SimpleAutoMapperSuzyklementy as a Cake Addin #addin nuget:?package=SimpleAutoMapperSuzyklementy&version=1.3.0 // Install SimpleAutoMapperSuzyklementy as a Cake Tool #tool nuget:?package=SimpleAutoMapperSuzyklementy&version=1.3.0
Simple AutoMapper
Simple AutoMapper is a .NET NuGet package that provides a service for automatic mapping objects (such as classes, records and structures) and it doesn't require any configuration to use.
Installation
Use a NuGet Package Manager and search for SimpleAutoMapperSuzyklementy or use a CLI command.
dotnet add package SimpleAutoMapperSuzyklementy
Usage
To use AutoMapper, refer to the static class AutoMapperService and use the selected method to map two objects.
The first generic type (TOriginal) represents the base object from which values will be mapped to the second generic type (TTarget) which represents the object to which values will be mapped, e.g. DTO for the base class. The method parameter is the original TOriginal type object from which the values will be mapped.
!IMPORTANT Only values represented by property will be mapping.
Example
var example = new Example()
{
Id = 1,
Name = "Test",
Description = "Test Description",
SecureData = "Secured Data"
};
var exampleDto = AutoMapperService.Map<Example, ExampleDto>(example);
If some properties are present only in TOriginal they will be just ignored but, when some of them occur only in TTarget they will be null or default value.
License
This project is licensed under the terms of the MIT license.
Documentation
More details about project and technical documentation here.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- No dependencies.
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 |
---|---|---|
1.3.0 | 102 | 8/1/2024 |