cezarypiatek / MappingGeneratorIssueTracker

This is a issue tracker for MappingGenerator
2 stars 0 forks source link

Nullable values mapping is mapped with throwing of exception #16

Closed olesjo closed 1 year ago

olesjo commented 2 years ago

Hi, I would like to have the option not to throw exception in the mapping when a nullable field is the source and the destination field is not. I.eks

It seesm like the "fallback to default value" does not do any differenct to "throw exception" in General Tab.

issue

cezarypiatek commented 2 years ago

Hi @olesjo ,

Thanks for reporting this issue. Can you tell what are the types of properties that are incorrectly handled?

UPDATE: It turned out that this setting was intended for conversions of value types (Nullable -> T). I need to add support for nullable-reference types here.

cezarypiatek commented 1 year ago

Hi @olesjo

I've released a new version with the requested feature. More details here https://github.com/cezarypiatek/MappingGeneratorReleases/releases/tag/2022.9.50

Please let me know if that fits your needs. Any feedback is welcome.