Current code throw exception Expression is not a MemberExpression:
TinyMapper.Bind<StudenRecord, StudentEntity>(cfg =>
{
cfg.Bind(x => $"{AppSettings.AvatarBaseUrl}/{x.AvatarUrl}", t => t.AvatarUrl);
});
Is there a way i could achieve my goal using TinyMapper?
Currently, TinyMapper doesn't support a MethodCallExpression it supports only MemberExpression, as a workaround, you can create custom type converter
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With