mapperly icon indicating copy to clipboard operation
mapperly copied to clipboard

A .NET source generator for generating object mappings. No runtime reflection.

Results 140 mapperly issues
Sort by recently updated
recently updated
newest added

Currently, mapping to records emits code that passes the source values to the constructor of the destination record type, but it does so all in a single line, like so:...

enhancement

Nested objects in existing target mappings should preserve the existing instance if possible. Currently always a new instance of the nested object is created. Rel. #1310 More details in #1484

enhancement

Add support for mappings with a class/struct target and a source implementing `IReadOnlyDictionary` or `IDictionary` with `TValue` beeing either `object` or `object?`. Questions to be discussed: * What type conversions...

enhancement

**Describe the bug** UseStaticMapper doesnt work with MapPropertyFromSource **Code** ```csharp public class SomeTest { public int Id { get; set; } public string? Number { get; set; } public string?...

enhancement

**Describe the bug** Pubic property with private setter are not mapped even with `IncludedMembers = MemberVisibility.All` applied **Declaration code** [https://dotnetfiddle.net/E4iGqY - reproduction](https://dotnetfiddle.net/E4iGqY) ```csharp using System; using Riok.Mapperly.Abstractions; public class User(string...

bug

# Add AggressiveInlining support ## Description - Adds support for generating `[MethodImpl(MethodImplOptions.AggressiveInlining)]` for mapping methods. - Adds expected code to verify snapshots to pass the tests. Fixes #1381 (issue) I...

enhancement
breaking-change

According to this [benchmark](https://github.com/mjebrahimi/Performance-Wars-Benchmarking-CSharp/tree/master/AggressiveInlining-Benchmark), it shows using `[MethodImpl(MethodImplOptions.AggressiveInlining)]` for mapping `struct`s is much faster than not using it. I must confess that much performance difference was surprising to me but...

enhancement

**Is your feature request related to a problem? Please describe.** When having mappings defined in different classes/files, I get RMG068: Cannot inline user implemented queryable expression mapping. In contrast, when...

enhancement

**Describe the bug** In records, with property having get; **init**; is not creating update mapping in generated source code. Due to **init**; setter. We are using **init** due to coding...

enhancement

**Describe the bug** The generated code is not compileable **Declaration code** ```csharp // Relevant code of the Mapperly definition and all relevant classes [Mapper] public static partial class CardMapper {...

bug