Try the following syntax:
Mapper
.CreateMap<Entity, EntityDto>()
.ForMember(
dest => dest.SomeDestinationProperty,
opt => opt.MapFrom(src => src.SomeSourceProperty)
);
or if the source and destination properties have the same names simply:
Mapper.CreateMap<Entity, EntityDto>();
Please checkout the relevant sections of the documentation for more details and other mapping scenarios.