❔ ❔ Better way to map object
Hello guys, i have an object called Room and it have building,floor,zone data
PS: ofc i rows 4 inherits row 3 and row 3 inherits row 2 etc..
i have done it with automapper I autoMap all rows to the row4 class then i aggregate the list to a tuple that contains lists of row 1 row 2 row 3 then i map them again to row4 class then i add them to the original list.
Is there any better way to do it ? i have used aggregate to just generate all data with one loop
3 Replies
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Up
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.