DynamicObjectMapperLightweight 1.0.0
dotnet add package DynamicObjectMapperLightweight --version 1.0.0
NuGet\Install-Package DynamicObjectMapperLightweight -Version 1.0.0
<PackageReference Include="DynamicObjectMapperLightweight" Version="1.0.0" />
<PackageVersion Include="DynamicObjectMapperLightweight" Version="1.0.0" />
<PackageReference Include="DynamicObjectMapperLightweight" />
paket add DynamicObjectMapperLightweight --version 1.0.0
#r "nuget: DynamicObjectMapperLightweight, 1.0.0"
#addin nuget:?package=DynamicObjectMapperLightweight&version=1.0.0
#tool nuget:?package=DynamicObjectMapperLightweight&version=1.0.0
DynamicObjectMapper DynamicObjectMapper is a lightweight library designed to simplify the process of mapping properties between objects without relying on third-party libraries like AutoMapper. It offers an easy-to-use solution for mapping properties, even for immutable objects, record types, and complex structures.
Features AutoMapper-Free: No need for AutoMapper or other dependencies. Supports Immutable Objects: Works seamlessly with immutable objects and record types. Expression-Based Mapping: Offers flexibility by allowing expression-based mappings for better control over property transformations. Attribute-Based Mapping: Provides fine-grained control over property mappings using custom attributes. Dynamic Property Mapping: Automatically maps dynamic properties between source and destination objects, without requiring explicit configuration. Installation To install the DynamicObjectMapper package, you can use the .NET CLI:
Use the command to add the package to your project. Usage Basic Usage: Easily map properties from one object to another, even if the properties have different names or types.
Mapping a List: Efficiently map collections of objects, converting each item in the list from the source type to the destination type.
Expression-Based Mapping: Use expressions to define custom mappings between source and destination properties for more complex scenarios.
Attribute-Based Property Control: Control the mapping behavior of specific properties using custom attributes to guide the transformation.
Supported Types Record Types: Handles mapping for record types in .NET. Immutable Objects: Supports immutable objects, including readonly properties and fields. Classes and Structs: Works with both classes and structs to map properties easily. Contributing If you would like to contribute to this project, feel free to fork the repository, make changes, and submit pull requests. Before submitting a PR, open an issue to discuss the changes, especially for new features or major bug fixes.
License This project is licensed under the MIT License, which allows for free use, modification, and distribution.
Contact For more information contact us via email.
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. net9.0 was computed. 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. net10.0 was computed. 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. |
-
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.0.0 | 118 | 2/17/2025 |