Resolving “Mapper not initialized. Call Initialize with appropriate configuration.”

Hi, In case you’re using AutoMapper to map entity objects; something like below line of code Mapper.Map<User, UserEntity>(user); and if you get the exception, “Mapper not initialized. Call Initialize with appropriate configuration.“, then it means, well, that you’ve not initialized AutoMapper and need to do so before mapping entities 🙂 So in order to initialize […]