Mapster
Mapster copied to clipboard
A fast, fun and stimulating object to object Mapper
Currently, we cannot use conditional access expressions while declaring mappings. For example; ```c# TypeAdapterConfig.NewConfig() .Map(dest => dest.Name, src => src.ItemAChild?.Name); ``` The above example would fail with an error, however,...
Using GRPC, the proto class that maps to my POCO has one field of type google.protobuf.Timestamp, whereas, it is a datetime field in my poco. The error says "source=Google.Protobuf.WellKnownTypes.Timestamp destination=System.DateTime"...
There's an exception produced when mapping to a class with a ctor: ```csharp public class Destination { public Destination(int number) { Id = number; } public int Id { get;...
# Mapster.Tool update to solve issue #714 ## TL; DR Replace Assembly.LoadFrom calls with something more robust that prevents assembly/type collisions between the assemblies in the running Mapster.Tool process (such...
This is a similar issue to #635 in that an assembly is not being loaded when running Mapster.Tool 8.4.1-pre-1, but the error message is slightly different. In #635 there is...
I'm curious if this package is still being maintained. It's been almost a year since a bug fix has been released?
I would want to map a class structure for logs. The main class is a generic class `Audit` where `T ` is class `LogData `or a subclass it. DTO would...
Suppose we have two interfaces which are identical except that one has a field the other does not. ```C# public interface Interface1 { public string Inter { get; set; }...
Use Version:7.4.0 Source Class: public class BaseResponse { public string? TraceId { get; set; } public Guid InvoiceId { get; set; } public GatewayActionResultEnum ActionResult { get; set; } public...
My problem is that I want to be able to propagate metadata managed by EF Core (for example, `MaxLength` which can be looked up through `IModel`) all the way to...