I am trying to map select like this:
SELECT id, total, total_currency FROM sometable
id is VARCHAR, total is numeric, currency is char(3)
Into entity like this:
class MyEntity
{
string Id { get; set; }
Money total { get; set; }
}
Money of course has constructor with signature (decimal amount, string currencyId)
. How do I achieve that in Dapper?