public class SummaryVisit : Visit, IMappable { public int SummaryId { get; set; } public int PatientId { get; set; } public int LocationId { get; set; } public IMappable Patient { get { return new SummaryPatient(PatientBusinessService.FindPatient(this.PatientId)); } } public IMappable Location { get { return new SummaryLocation(LocationBusinessService.FindLocation(this.LocationId)); } } public IEnumerable<IMappable> Comments { get { return new SummaryComments(CommentBusinessService.FindComments(this.SummaryId)); } } // ... can be a lot of these structures // ... using different business services and summary objects public IEnumerable<IMappable> Tasks { get { return new SummaryTasks(TaskBusinessService.FindTasks(this)); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)