Mapster
Mapster copied to clipboard
A fast, fun and stimulating object to object Mapper
Nuget says the package doesn't contain any assembly reference compatible with netframework version 4.8. Previous version of mapster installed fine.
Hello 👋 Update Projects to .NET 8.0.
When mapping nested objects Mapster sometimes fails with `System.NullReferenceException: 'Object reference not set to an instance of an object.'` ``` System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of...
We have developed a service using Mapster to map our model and more particularly the Include method to configure the mapping. ```csharp public TypeAdapterSetter Include() where TDerivedSource : class, TSource...
fix issue, when Dst init property name miss match Src property name.
Fix Issue #656 Partial fix issue #422 Fix MapToTarget generation to not Public setters (init Prorperty also working in Mapster 7.4.0) Not Fix AdaptTo - need use `.MapToConstructor(true)`; example ```...
Hi, I have a problem with version 7.4. If I want to map two properties with different names and the destination has a different name and the `init` modifier, Mapster...
I have type hierarchy ``` public class ProvinceInfo { public string Code { get; set; } public string Title { get; set; } } class Address { public ProvinceInfo Province...
I'm using Mapster.Tool to generate extension methods from my mapping registrations like so: ```csharp config.NewConfig().GenerateMapper(MapType.Map | MapType.MapToTarget); ``` When inspecting the generated code I noticed that anywhere GetEnumerator() is used,...
While im configuring with attributes ``` [AdaptFrom(typeof(Foo))] public record Bar(string Title); public record Foo(string Name); ``` These records are supposed to throw an error during **Compile()**, but it doesn't happen...