0
Hello!
I have a question related to the return of an object with an already filled 'Value Object', example:
I have the User.Cs class.
public class User
{
public Guid UserId { get; set; }
public string Name { get; set; }
public string Password { get; set; }
public Email Email { get; set; }
}
Class Email.Cs
public class Email
{
public string Address { get; set; }
}
In any search I do with Dapper the return of Email is always null. There is some way to map the return of Dapper?
Note. The data is persisted in a single table, there is no relationship.
Edith your question and put the code instead of image! Read: Post code as image.
– NoobSaibot
Edited, thank you.
– Leandro Ferreira
That Stackoverflow En question of mine is very similar: How to map a Complex Object using Spliton and Types?
– Marconi