internal static void Traverse(this Order entity, EntitiesIterator visitor) { if (entity.Customer != null) { visitor.Visit(entity.Customer); } }
public static EntitiesIterator Create <T>(T entity) { EntitiesIterator iterator = new EntitiesIterator(); iterator.Visit(entity); return(iterator); }
internal static void Traverse(this Customer entity, EntitiesIterator visitor) { if (entity.Orders != null) { foreach (var value in entity.Orders) { visitor.Visit(value); } } }