Mapster icon indicating copy to clipboard operation
Mapster copied to clipboard

A fast, fun and stimulating object to object Mapper

Results 267 Mapster issues
Sort by recently updated
recently updated
newest added

- [x] Custom SourceDefaultValue (Member only) - [ ] ThrowifNull behavior - [x] ThrowifNull (Member only) - [ ] ThrowifNull all member

improvement

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,...

improvement
help wanted

## 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...

improvement
help wanted

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();`

improvement

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