1
Guys, I have the following code:
List<NFE_CABECALHOEntity> lista = new List<NFE_CABECALHOEntity>();
Mapper.Initialize(cfg => { cfg.CreateMap<NFE_CABECALHO, NFE_CABECALHOEntity>(); });
lista = Mapper.Map<List<NFE_CABECALHO> ,List<NFE_CABECALHOEntity>>(listaData);
but I’m not getting the objects from the list?
It shows the following error:
Mapping types:
List1 -> List
1
System.Collections.Generic.List1[[Data.Entity.NFE_CABECALHO, Data, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null]] -> System.Collections.Generic.List
1[[Entity.Model.Nfe_cabecalhoentity, Entity, Version=1.8.2.0, Culture=neutral, Publickeytoken=null]]
Is generating error or the object comes empty?
– Barbetta
Sorry, this includes the error you are showing.
– Brayan