Mapping with entity to model Version-4.3

1 个月 前
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);
1 个月 前
Is that the whole error message?
(Are you not showing us an error like "Missing type map configuration or unsupported mapping"?)
1 个月 前
Look at the class name is "AdminMapperConfiguration".  this might be help you.


location:- /Areas/Admin/Infrastructure/Mapper
1 个月 前
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