MappingGenerator 2023.1.53
See the version list below for details.
dotnet add package MappingGenerator --version 2023.1.53
NuGet\Install-Package MappingGenerator -Version 2023.1.53
<PackageReference Include="MappingGenerator" Version="2023.1.53" />
paket add MappingGenerator --version 2023.1.53
#r "nuget: MappingGenerator, 2023.1.53"
// Install MappingGenerator as a Cake Addin #addin nuget:?package=MappingGenerator&version=2023.1.53 // Install MappingGenerator as a Cake Tool #tool nuget:?package=MappingGenerator&version=2023.1.53
Key features:
⭐ Generating mapping method implementation
⭐ Generating full mapper class
⭐ Generating mapping lambda for Select
method
⭐ Cleaning up method invocation (reformating, auto-extracting complex parameters, etc)
⭐ Method invocation scaffolding
⭐ Object initialization scaffolding
⭐ Smart snippets for ILogger
usages
⭐ Design-time JSON deserializer
Scroll down or check the documentation to find out more.
This software is provided as 👉Freemium👈 which means that some features are available for free, and some features require paid license. More info about that in What you get in the Free version and What you get in the Paid version sections below 👇
Important resources
Product page: https://www.mappinggenerator.net
Features overview: Documentation
Release notes and previous versions: Changelog
Bugs and Feature Requests: Issue Tracker
Check out the Special Offers to save some 💲💲💲
What you get in the Free version
Mapping method implementor
Code action that generates an implementation for different mapping methods based on the method signature:
Method invocation scaffolder
Code action that automatically completes method invocation with locally available variables
Initialization block scaffolder
Code action that automatically completes object initialization block with locally available variables:
Mapping lambda scaffolder
Code action that generates mapping lambda for Select()
and ConvertAll()
methods
What you get in the Paid version
UI Mapping configurator
Full access to UI configurator that allows adjusting different aspects of how the mapping code is generated (in the free version you can try it how it works in read-only mode).
Read more about the UI Configurator possibilities here https://docs.mappinggenerator.net/mappings/ui-configurator/
More matching rules and mapping converters
Premium version contains a much broader set of converters and matching rules that are able to handle more complex mappings:
- ⭐ String Parsing Converter
- ⭐ Enum To Enum Converter
- ⭐ Enum To String Converter
- ⭐ DataReader To Object
- ⭐ Object To Dictionary
- ⭐ Dictionary To Object
- ⭐ Dictionary To Dictionary
- ⭐ Dictionary To Collection
- ⭐ Collection To Dictionary
- ⭐ Existing Instance Converters
- ⭐ Existing Static Converters
- ⭐ Unwrapping Converter
Mapping interface implementor
Code action that generates mapper implementation based on the provided interface:
Full Mapper generator
MappingGenerator provides code actions for generating a complete mapper class with desired mapping methods:
- Map A to B - pure mapping method that converts type A to type B.
- Map B to A - pure mapping method that converts type B to type A.
- Update A with B - mapping method that updates arguments of type A with values from the argument of type B.
- Update B with A - mapping method that updates arguments of type B with values from the argument of type A.
- Project A to B - Linq projection from type A to type B
- Project B to A - Linq projection from type B to type A.
Invocation CleanUp refactoring
This code action allows for:
- Fixing method invocation formatting. We can choose between single and multi-line notation.
- Toggle arguments’ names.
- Extract complex arguments to local variables.
Invocation Scaffolder
Have you ever been struggling with completing a method's long parameter list? What do you feel when you've got lost in the middle because there are a few similar overloads? This premium feature allows for quick scaffolding of complete method invocation.
Advanced Object Scaffolder
This module allows for the customization of how the object initialization is scaffolded:
- Option to choose value generation strategy
- Chose between
new Type()
andnew()
object creation syntax. - Limit nesting level (useful for scaffolding recursive types or large object graphs).
- Define how many elements generate for collection initialization.
- Control the order of the initialized properties.
Facility for logging
A set of scaffoldings that facilitate the usage of Microsoft.Extensions.Logging.ILogger
:
- Automatically inject strongly typed logger and log info about the caught exception.
- Wrap the selected block with
try-catch
, inject logger if needed, and log the exception - Wrap the selected block with logging scope
- Inject logger and insert logger accessor
Automatically inject strongly typed logger and log info about the caught exception. Learn more about this feature here
Using along with Resharper
If you are not able to access MappingGenerator via the context menu (alt + enter
or ctr + .
) please verify your Resharper settings related to Visual Studio Integration
or Visual Studio code analysis
(depends on the R# version). You can read more about proper Resharper configuration for Roslyn extensions here https://docs.mappinggenerator.net/basics/using-with-resharper/
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on MappingGenerator:
Package | Downloads |
---|---|
Reo.Core.Events
Package Description |
|
Reo.MnoApi.Sensors
Package Description |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on MappingGenerator:
Repository | Stars |
---|---|
rabbal/DNTFrameworkCore
Lightweight and Extensible Infrastructure for Building Web Applications - Web Application Framework
|
Version | Downloads | Last updated |
---|---|---|
2023.7.64 | 115,904 | 11/27/2023 |
2023.7.62 | 2,895 | 11/12/2023 |
2023.7.61 | 97,681 | 8/1/2023 |
2023.7.60 | 597 | 7/31/2023 |
2023.7.57 | 4,969 | 7/8/2023 |
2023.3.56 | 35,723 | 3/27/2023 |
2023.3.55 | 7,518 | 3/6/2023 |
2023.2.54 | 13,913 | 2/21/2023 |
2023.1.53 | 51,857 | 1/10/2023 |
2023.1.52 | 11,052 | 1/8/2023 |
2023.1.51 | 5,918 | 1/2/2023 |
2022.9.50 | 9,820 | 12/13/2022 |
2022.9.49 | 34,633 | 9/25/2022 |
2022.9.48 | 2,369 | 9/21/2022 |
2022.8.47 | 10,982 | 8/30/2022 |
2022.7.46 | 5,449 | 8/14/2022 |
2022.7.45 | 13,773 | 7/9/2022 |
2022.4.44 | 28,664 | 4/18/2022 |
2022.4.43 | 2,200 | 4/12/2022 |
2022.4.42 | 10,947 | 4/3/2022 |
2022.3.40 | 7,453 | 2/27/2022 |
2022.2.39 | 16,289 | 2/17/2022 |
2022.1.38 | 3,281 | 1/26/2022 |
2022.1.37 | 2,967 | 1/16/2022 |
2021.12.36 | 1,707 | 1/9/2022 |
2021.12.35 | 37,186 | 12/20/2021 |
2021.10.33 | 5,864 | 12/9/2021 |
2021.10.32 | 11,324 | 12/1/2021 |
2021.10.30 | 26,092 | 10/17/2021 |
2021.8.29 | 1,779 | 10/6/2021 |
2021.8.28 | 913 | 10/4/2021 |
2021.8.27 | 18,742 | 8/24/2021 |
2021.7.22 | 10,174 | 8/11/2021 |
2021.7.21 | 634 | 8/11/2021 |
2021.7.20 | 4,094 | 7/19/2021 |
2021.6.19 | 5,217 | 7/7/2021 |
2021.6.18 | 23,460 | 6/24/2021 |
2021.6.17 | 1,321 | 6/17/2021 |
2021.6.16 | 1,504 | 6/15/2021 |
2021.6.14 | 1,539 | 6/11/2021 |
2021.6.13 | 928 | 6/10/2021 |
2021.6.12 | 9,174 | 6/8/2021 |
2021.6.11 | 621 | 6/7/2021 |
2021.6.10 | 5,550 | 6/1/2021 |
1.22.3 | 43,066 | 3/13/2021 |
1.22.2 | 692 | 3/13/2021 |
1.22.1.18 | 65,405 | 1/21/2021 |
1.22.0.17 | 726 | 1/20/2021 |
1.21.15 | 6,506 | 1/5/2021 |
1.21.13 | 740 | 1/2/2021 |
1.21.11 | 607 | 1/2/2021 |
1.21.9 | 619 | 1/2/2021 |
1.20.463 | 81,268 | 11/12/2020 |
1.19.454 | 4,323 | 11/1/2020 |
1.19.452 | 785 | 10/31/2020 |
1.18.448 | 4,783 | 9/12/2020 |
1.17.442 | 2,680 | 9/2/2020 |
1.17.437 | 781 | 9/1/2020 |
1.17.435 | 923 | 8/31/2020 |
1.16.411 | 15,533 | 6/29/2020 |
1.16.405 | 5,436 | 6/2/2020 |
1.16.393 | 721 | 5/31/2020 |
1.15.386 | 715 | 5/31/2020 |
1.15.384 | 888 | 5/27/2020 |
1.14.356 | 1,499 | 3/23/2020 |
1.14.348 | 2,566 | 1/27/2020 |
1.12.306 | 3,364 | 9/20/2019 |
1.11.297 | 917 | 9/6/2019 |
1.10.281 | 825 | 8/26/2019 |
1.5.203 | 4,264 | 10/21/2018 |