3

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?

Maxim Zhukov
  • 10,060
  • 5
  • 44
  • 88

1 Answers1

2

Currently, TinyMapper doesn't support a MethodCallExpression it supports only MemberExpression, as a workaround, you can create custom type converter

GSerjo
  • 4,725
  • 1
  • 36
  • 55