Takes an existing object and populates only the children. Useful for lazy loading of child objects. Assumes that the unique identified (for example Customer.Id) has already been set.
This will overwrite any child properties that are already populated in the existing object. For example, if you've added a new Order to Customer.Orders, and didn't save it, it will be replaced with the existing orders in the database.
Example:
Customer customer = new Customer();
customer.Id = 1;
IObjectMapper<Customer> mapper = Elementary.GetIObjectMapper<Customer>();
mapper.LoadChildrenOnly(customer); // customer.Orders is now populated