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

Hi, I get the same error message as #228 . I configure the TypeAdapterConfig once per class/dto mapping in my Startup and use it through my code per x.Adapt() It's...

Try codegen with DI. Standard NetCore webapi template (7.0) Program.cs ```csharp TypeAdapterConfig.GlobalSettings.Scan(AppDomain.CurrentDomain.GetAssemblies()); ... builder.Services.AddScoped(); builder.Services.Scan(selector => selector.FromCallingAssembly() .AddClasses().AsMatchingInterface().WithSingletonLifetime()); ... ``` IApiMapper interface ```csharp [Mapper] public interface IApiMapper { Dest MapToExisting(DTO.Source...

Hello @andrerav, We're having an issue after upgrading from Mapster.Tool 8.4.0-pre05 to 8.4.0-pre06 which incorporated these changes from merge #544. I'm running on macOS and using .NET 7 Our project...

Hi! This code generates StackOverlowException while calling method Compile() on versions 7.2.0 , 7.3.0 and 7.4-pre: ``` using Mapster; var config = new TypeAdapterConfig { RequireExplicitMapping = true, // comment...

It would be very useful if the debugger understood that `.Map` and other methods can return (and take) null

Hello. I am using mapster tool. Mapper that generated by tool is wrong. I have created an [example](https://github.com/wondertalik/MapsterToolBug). Mapper generates when buil a project. ```c# using Mapster; using CompanyContract =...

public static partial class GeneratedMapperExtensionClass { private static Func ToExt1; public static DestinationClass AdaptToDestinationClass (this SourceClass p1) { return p1 == null ? null : new DestinationClass () { Property...

```C# public interface IDataLocalizer { public CultureInfo CultureInfo { get; set; } } public interface ILocalizerDto : IMyDto { public string CultureName { get; set; } public string CultureDisplayName {...

Assume with the following data structure: ``` public class BaseClass { private readonly string[] parameters1; public BaseClass(string[] parameters1) { this.parameters1 = parameters1; } public IReadOnlyCollection Parameters1 => this.parameters1; } public...

The current build is almost a year and a half old, and contains changes that I need to take advantage of (such as the IOrderedQueryable interface on projections from https://github.com/MapsterMapper/Mapster/commit/4e4ce2e8110f3c479c1c6b40ed9c7333300c10d3...