'Automapper 11, string to Uri no longer works
since upgrading to automapper 11 trying to map a string to an Uri no longer works
Entity
public sealed class Website
{
public int Id { get; set; }
public string Name {get; set; }
public string BaseAddress { get; set; }
}
object I'm mapping to
public sealed class WebsiteDto
{
public int Id { get; set; }
public string Name { get; set; }
public Uri BaseAddress { get; set; }
}
mapping profile contains
CreateMap<Website, WebsiteDto>();
and how I'm calling it
_mapper.Map<List<WebsiteDto>>(listOfWebsiteEntities);
This was working fine before upgrading to 11, I think it might be a bug but before I raise it as an issue Automapper suggests raising a question here, am I missing something?
after downgrading to automapper 10.1.1 it works again. the upgrade guide doesn't seem to mention anything related to this
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
