question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support configuring attribute maps with additional properties

See original GitHub issue

Follow 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:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lbargaoanucommented, Feb 9, 2019

A MapFrom will be inherited by default, which is nice, but runtime polymorphism doesn’t work by default.

1reaction
lbargaoanucommented, Feb 8, 2019
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found