otis

Automapper or Otis: Mapping ReadonlyDictionary <name, value> to a DTO's IList<string>

I am trying out Automapper as well as otis. I have a source type that is something list this (only partial code shown here): class Source { ReadOnlyDictionary<string, customtype> items; } My DTO is like so: class ClassDTO { IList<string> pageNames; } Now how do I map the pagenames in my DTO to "items" in the source type, ...

Otis - how to map a property in DTO

Hi, I am trying Otis object to object mapper. It seems to map well if the source and target (DTO) propertyies are directly mappable. But if i have to run some logic (using some property in the source type) to retrieve a value for setting up the DTO's property value, there does not seem to be any mechanism to do that. Any idea how to g...