Mapping with entity to model Version-4.3

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 年 前
How mapping work in  nopcommerce 4.3
var model = item.ToModel<MemberAccountModel>();


So here item is entity and doing convert entity to  model but get this error

Mapping types:
MemberAccount -> MemberAccountModel
EGP.Trading.Data.Domain.MemberAccount -> EGP.Trading.Data.Models.MemberAccountModel

return AutoMapperConfiguration.Mapper.Map<TDestination>(source);
3 年 前
Is that the whole error message?
(Are you not showing us an error like "Missing type map configuration or unsupported mapping"?)
3 年 前
Look at the class name is "AdminMapperConfiguration".  this might be help you.


location:- /Areas/Admin/Infrastructure/Mapper
3 年 前
sangeetshah wrote:
Look at the class name is "AdminMapperConfiguration".  this might be help you.


location:- /Areas/Admin/Infrastructure/Mapper


Thanks that's work for me
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.