Map multiple properties to a single #774
Replies: 2 comments 3 replies
-
You can use before/after map for this. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Thanks @latonz , that's how i solved it for now. public class User
{
public Guid Id { get; }
public string Firstname { get; }
public string Lastname { get; }
}
public class UserDto
{
public Guid Id { get; }
public **required** string Name { get; } // Firstname + " " + Lastname
} there will be a compile time error though, which needs to be worked around by assigning something and overwriting it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
is is possible to combine multiple properties into a single?
A classic example would be
Thank you for any help
Beta Was this translation helpful? Give feedback.
All reactions