5. IList<T> GetCollectionWithChildren()

Returns all objects in the database for the specified type and their children.

Example:

IObjectMapper<Customer> mapper = Elementary.GetIObjectMapper<Customer>();
IList<Customer> customers = mapper.GetCollection();

Console.WriteLine(customers[0].Orders); // Orders is populated