Mapping with entity to model Version-4.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);
один месяц назад
Is that the whole error message?
(Are you not showing us an error like "Missing type map configuration or unsupported mapping"?)
один месяц назад
Look at the class name is "AdminMapperConfiguration".  this might be help you.


location:- /Areas/Admin/Infrastructure/Mapper
один месяц назад
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