jasontaylordev / NorthwindTraders

Northwind Traders is a sample application built using ASP.NET Core and Entity Framework Core.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default implementation of IMapFrom.Mapping is not called when it is not implemented in the dto

keimpema opened this issue · comments

In MappingProfile.ApplyMappingsFromAssembly:

type.GetMethod("Mapping") returns null if the dto does not implement the method

this seems to work in all cases:

var inter = type.GetInterface(typeof(IMapFrom<>).Name);
var methodInfo = inter.GetMethod("Mapping");

I'm also seeing this issue. Created a basic reproduction here.

@jasontaylordev, would you like me to create a pull request to fix? Or would your rather handle it another way?

Thank you for your interest in this project. This repository has been archived and is no longer actively maintained or supported. We appreciate your understanding. Feel free to explore the codebase and adapt it to your own needs if it serves as a useful reference. If you have any further questions or concerns, please refer to the README for more information.