Mapster
Mapster copied to clipboard
A fast, fun and stimulating object to object Mapper
- [x] Custom SourceDefaultValue (Member only) - [ ] ThrowifNull behavior - [x] ThrowifNull (Member only) - [ ] ThrowifNull all member
Is there an easy way to change how [null propagation](https://github.com/MapsterMapper/Mapster/wiki/Custom-mapping#null-propagation) works? 1) If we wanted to throw an exception when null reference encountered? There are lots of various `Ignore` methods,...
## Description When trying to create a mapping between abstract base classes and including their derived concrete implementations, Mapster throws an exception during `CompileProjection()`. There appears to be an issue...
This PR introduces nullability annotations. A warning will now be triggered when attempting to map a nullable input to a non-nullable output, for example: `ProductDTO dto = ((Product?)null).Adapt();`
fix infinity loop that occurs when using applySettings: true
This might be related to #776. I have a class hierarchy and a base class DTO that combines all possible properties. When mapping a single item cast to the base...