my class is:
public class Person
{
public int Id { get; set; }
public string Name { get; set; }
public List<Address> Addresses { get; set; }
public BankAccount Account { get; set; }
}
public class Address
{
public string Street { get; set; }
public string City { get; set; }
public string Zipcode { get; set; }
}
public class BankAccount
{
public decimal Balance {get; set;}
public DateTime LastDateWithdrawn { get; set;}
}
its not possible with multimapping or the multiple results i already tried. How do you do that in dapper? what I want to achieve is not to make roundtrips to the database getting the addresses and the bank account if I could use multi-mapping or multiple result or any other options.