Support configuring attribute maps with additional properties
See original GitHub issueFollow up to #2930, the initial implementation only does reverse map configuration.
There are a number of configuration options that we could include as part of the AutoMapAttribute
configuration.
Easy ones:
- ConstructUsingServiceLocator (bool)
- MaxDepth (int)
- PreserveReferences (bool)
- DisableCtorValidation (bool)
- MemberList (enum)
- IncludeAllDerived (bool)
- TypeConverter (Type)
Not-so-easy-ones:
- Value transformers
- Expression/func-based type converters
- Before/after map
- Include/IncludeBase
I’d lean towards if you’re trying to do the “hard ones”, then you should use the API because any attribute-based configuration would be ugly.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Support creating maps via attributes · Issue #2930
We've got conventions but nothing that builds in via attributes. ... Support configuring attribute maps with additional properties #2936.
Read more >Configure attribute maps
Learn how to map attributes with Microsoft Cloud for Healthcare ... For more information on expansion maps, go to Configure expansion maps.
Read more >Customize Azure Active Directory attribute mappings in ...
With attribute-mappings, you control how attributes are populated in a third-party SaaS application. There are four different mapping types ...
Read more >Configuring Attribute Mapping
Map additional attributes as needed and click OK when finished. The attribute mapping definition is added to the Environment Mappings folder in the...
Read more >Configure a map service—ArcGIS Pro | Documentation
This workflow explains how to modify the default configuration of a map service. To begin the process, set general properties, and publish, see...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
A MapFrom will be inherited by default, which is nice, but runtime polymorphism doesn’t work by default.
Sure, but do look at https://github.com/AutoMapper/AutoMapper/pull/2944 first.