Skip to content

Flatten child properties #1282

Closed Answered by iFooledMe
iFooledMe asked this question in Q&A
May 13, 2024 · 3 comments · 3 replies
Discussion options

You must be logged in to vote

Actually, I just figured out that I can use custom mapping like this:
// Custom mapping
private AggregateOneId MapToAggregateOneId(string id) => new AggregateOneId(Guid.Parse(id));
private string MapToAggregateOneIdString(AggregateOneId id) => id.Value.ToString();
private string MapToChildEntityOneIdString(ChildEntityOneId id) => id.Value.ToString();
private string MapToChildEntityTwoIdString(ChildEntityTwoId id) => id.Value.ToString();

Very clean! 

Sorry for being a bit slow here :-) Thanks for taking your time and again for a excelent mapper.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@iFooledMe
Comment options

@iFooledMe
Comment options

@iFooledMe
Comment options

Answer selected by iFooledMe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants