mapperly
mapperly copied to clipboard
A .NET source generator for generating object mappings. No runtime reflection.
Introduce two new attributes to include the mapping configuration of another mapper / mapping method. Each mapping configuration is identified by a name which is by default the name of...
With https://github.com/riok/mapperly/pull/732 `IncludedMembers` has been implemented. This can currently only be set at class level in the mapper configuration. An `IncludedMembersAttribute` should be created to enable this on method level....
**Is your feature request related to a problem? Please describe.** The nullable check guard can be seen i.e. [here](https://github.com/riok/mapperly/blob/main/test/Riok.Mapperly.Tests/_snapshots/UnsafeAccessorTest.PrivateNestedNullableProperty%23Mapper.g.verified.cs) causes duplicated call for source value. ```cs if (source.GetNested()?.GetValue() != null)...
**Describe the bug** when i want map parent class with prop of list of child and child class have prop of parent class (simple parent child relationship) and use IQueryable...
**Describe the bug** Mapperly does not correctly map classes that inherit from Collection types such as `List` or `IEnumerable`. It will ignore any properties on the target class and will...
Add a step by step guide on how to migrate from AutoMapper to Mapperly.
**Is your feature request related to a problem? Please describe.** I want to create a mapper that can map to a derived type and the base type. I could not...
**Is your feature request related to a problem? Please describe.** Using MapProperty to assign a nested value will prevent the root member being auto resolved from the source. ```C# [Mapper]...
**Is your feature request related to a problem? Please describe.** It seems like Mapperly currently uses the target property setter visibility in an "existing target object" mapper (void method) to...
**Describe the bug** I have a working "existing target object" (void method) mapper for a type that contains a collection property. If I change the collection property to an `init`...