valueinjecter not copying nested properties values
问题 I have following class: public class Ad { public int Id {get;set;} public string Title { get; set; } public string UrlTitle { get; set; } public LookUp Color {get;set} public LookUp Condition {get;set} public int InsertUserId {get; set;} public DateTime InsertDate {get; set;} } LookUp class is as follows: public class LookUp { public int Id {get;set;} public string Name { get; set; } public int InsertUserId {get; set;} public DateTime InsertDate {get; set;} } Then I have ViewModels for these