You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 standards.
// Actual relevant code generated by Mapperly// <auto-generated />
#nullable enable
publicpartialclassCarMapper{[global::System.CodeDom.Compiler.GeneratedCode("Riok.Mapperly","3.6.0.0")]publicpartialvoidUpdateCarDto(global::Carcar,global::CarDtocarDto){}}
Expected relevant generated code
// The generated code how you expect it to look like
#nullable enable
publicpartialclassCarMapper{[global::System.CodeDom.Compiler.GeneratedCode("Riok.Mapperly","3.6.0.0")]publicpartialvoidUpdateCarDto(global::Carcar,global::CarDtocarDto){returncarDtowith{Id=car.Id,Name=car.Name,Price=car.Price??existingCarDto.Price};}}
Environment (please complete the following information):
Mapperly Version: 3.6.0
Nullable reference types: Enabled
.NET Version: .NET 8.0.100
Target Framework: .NET 8.0.0
Compiler Version: '4.8.0-3.23524.11 (f43cd10b)'.
C# Language Version: 12.0
IDE: Visual Studio 17.5.4
OS: Windows 11
Additional context
The text was updated successfully, but these errors were encountered:
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 standards.
Declaration code
Actual relevant generated code
Expected relevant generated code
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: