我的课是:
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;}
}
多重映射或我已经尝试过的多个结果是不可能的。你如何在 Dapper 中做到这一点?如果我可以使用多重映射或多重结果或任何其他选项,我想要实现的不是往返于获取地址和银行账户的数据库。