-2
I did this in the constructor of my class and now gives error saying that there is no overload for the Tostring method with 1 argument. It was working, I gave a clean in the Solution and it broke everything.
Mapper.Initialize(cfg => {
//string userName = null;
cfg.CreateMap<LiberacaoDTO, Liberacao>()
.ForMember(d => d.Juros,
opt => opt.MapFrom(src => Juros.ToString("C3")
));
});
Your Property Interest is Nullable<float>?
– Gabriel Coletta
What kind of property Interest?
– Tiago S
double? But it was working, so I gave a clean on Solution and it didn’t work anymore
– pnet
I removed the null(double) and gave no more error.
– pnet
What it is to give a Clean on the Solution?
– Italo Rodrigo