Mapster
Mapster copied to clipboard
A fast, fun and stimulating object to object Mapper
It crashes inside library without any exception when mapping the ef enitity with property like this: ` public virtual ICollection Admins { get; set; } = [];` and only way...
I upgraded fec 4.2.2 (https://github.com/dadhi/FastExpressionCompiler/releases/tag/v4.2.2) and **Compile** throws exception. ``` config.NewConfig() .Map(dest => dest.Email, src => src.User.Email) .Map(dest => dest.PackageName, src => src.PackageName) .Map(dest => dest.CreatedAt, src => src.CreatedAt) .Map(dest...
Hello I am experiencing an error with an edge-case of inheritance mapping. When mapping between two abstract classes, Mapster cannot handle when the source-object is null. An example of this...
Hi, does Mapster cache class information? Is there a possibility of memory leakage when reloading classes using ALC Thank you for your reply
If you use IRegister to define the inheritance mapping like this: DerivedPocoProfile.cs ``` public class DerivedPocoProfile : IRegister { public void Register(TypeAdapterConfig config) { .NewConfig() .Inherits(); } } ``` SimplePocoProfile.cs...
Add async mapping extensions: - `AdaptAsync()` - `MapAsync(source)` from IMapper Example of use: ``` var dto = await poco.AdaptAsync(); IMapper mapper= new Mapper(); var destination = await mapper.MapAsync(poco); ```
Is it possible to add simpler extensions methods to `IMapper` and/or `TypeAdapterSetter` to simplify async mapping? Currently we have to ``` var dto = await poco.BuildAdapter() .AdaptToTypeAsync(); ``` or ```...
I am in the process of refactoring a project from automapper to mapster. I have run into an issue with mapping configs for generic classes e.g. ```C# CreateMap(typeof(derivedDto), typeof(derivedDomain)) .IncludeBase(typeof(baseDto),...
Unless you specify a naming strategy mapping to a record with properties all in upper case the destination value is not set. Works fine if the destination type is a...
In our company we are currently evaluating switching from AutoMapper to Mapster. Therefore I just wanted to ask if this project is still being actively maintained? The last commit was...