You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But, obviously, it doesn't work. What do you think about adding this? Would you accept such a PR?
If you think it is a rare case, could you consider optional support? We could add some kind of configuration like [MapFrom(typeof(Entity), MapMethods = true)]
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion but I think this is a rare case and having an extra option just for this case in the API will make it complicated for others. I think the best way to tackle this issue might be to extend the conversion API to support more complicated scenarios.
Also, I am planning to add support for mapping profiles like Automapper. I think it is possible to have support for this scenario in that too but no promises.
On some project I have to use quite specific API which exposes models with methods instead of properties.
For example, API model:
My model:
But, obviously, it doesn't work. What do you think about adding this? Would you accept such a PR?
If you think it is a rare case, could you consider optional support? We could add some kind of configuration like
[MapFrom(typeof(Entity), MapMethods = true)]
The text was updated successfully, but these errors were encountered: