This repository has been archived by the owner on Jan 16, 2022. It is now read-only.
Generating mapping expression for C# 9 positional records #170
Labels
enhancement
New feature or request
Feature description
I am trying to generate mapping expressions between EF entity model and a DTO model. The DTO model consists of C#9 positional records. I could not generate proper DTO constructor for these expressions using any generation option.
The scenario is same as below, except filling a multi-parameter constructor instead of an initialization block as C# 9 positional records are initialized through constructor instead of initialization block.
Reasoning behind
Generating expressions do work for initialization blocks. Generating pure mapping methods do work with positional records as mapping target. Generating expressions for positional records should work as well.
Real word example of the usage
Positional record is an emerging new concept, expecting to see more DTO models implemented as positional records.
The text was updated successfully, but these errors were encountered: