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

I have a situation where I only want the `Source.Name` property to be mapped to the `Target.Name` property if the `HasValue` flag of the `Source.Name` property is `true`. ```cs struct...

There are numerous issues that have been reported since the release of 7.3.0 that seem to have a common theme -- performing a map to an existing object has a...

bug

Issue https://github.com/MapsterMapper/Mapster/issues/180 shows how to solve the need for multiple sources using tuples, and that it is implemented in Mapster 5.0. However, using multiple sources as stated in the docs...

waiting for info

Fix issue #524 Before: if Type was packaged into an object: `object _source = new TSource() ` Instead of updating with data from TSource, it was converted to the TDestination...

As I am seeing, Mapster can't map named tuple to class with the same names. As I understand, it happened because named tuple is just a syntactic sugar. Example: `class...

I thought I would flag an issue I observed. When following the example in https://github.com/MapsterMapper/Mapster/wiki/Custom-mapping _Example 2: Mapping 2 objects to poco_ there seems to be an issue when reversing...

```csharp public class Source { public int X1 { get; set; } } public class Dest { public int X1 { get; set; } } var source = new Source...

bug

Hello, The `TypeAdapterSetter.Include` method [as demonstrated here](https://github.com/MapsterMapper/Mapster/wiki/Config-inheritance#include-derived-types) to adapt derived types only works when the `TypeAdapter.Adapt` method is provided both `TSource` and `TDestination` type parameters. Given this configuration: ``` TypeAdapterConfig.NewConfig()...

I've noticed what I consider to be an issue with Mapster and can't see another issue related to this. It may also be a lack of understanding on my part....

Fix from Isuue #640 It Will Work When Enum Cast to object. I'm not sure this is the right way.