Copy properties between objects using reflection and extesnion method
问题 This is my code where I create a "copy" of one object (Entity) into a custom object. It copies just properties with the same name in both source and target. My problem is when an Entity has a navgiaton to another Entity, for this case I added a custom attribute that I add above the property in the custom class. For example the custom class looks like: public class CourseModel:BaseDataItemModel { public int CourseNumber { get; set; } public string Name { get; set; } LecturerModel lecturer;