Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "amirventer"

Answer

I've created an issue over at AutoMapper.

[https://github.com/AutoMapper/AutoMapper/issues/1683])

Answer

Okay my initial console code was incorrect, it should be :

class Program
    {
        static void Main(string[] args)
        {
            Mapper.Initialize(cfg => cfg.CreateMap<OutgoingTransaction, OutgoingTransactionDto>());


            var transaction = new OutgoingTransaction();

            var dto = Mapper.Map<OutgoingTransactionDto>(transaction);

        }
    }

Using automapper 5.1.1 it gives me the error but if I use version 5.0.2 or less then it works...

So the issue is automapper

Showing 1 to 2 of 2 entries