When writing a custom converter , I think.
This is a rather unusual requirement - to lose the binding between id and name.
I think you're right. sorry, I'm still learning about dto / viewmodel mapping. Do you find it acceptable to place a domain object inside a DTO, since it makes no sense to create a dto for Thing?
. , ( ...).
class Thing {
public int ThingId { get; set; }
public string ThingName { get; set; }
public string UnnecessaryProp {get;set;}
}
class ThingViewModel {
public int ThingId { get; set; }
public string ThingName { get; set; }
}
class MyView {
public IEnumerable<ThingViewModel> Things {get;set;}
}
.