DTOs Collections mapping Problem
- by the_knight5000
I'm working now on a multi-tier project which has layers as following :
DAL
BLL
GUI Layer
and Shared DTOs between BLL and GUI layers.
I'm facing a problem in mapping the Objects from DAO To DTO, No problem in 
the simple objects.
The problem is in the Objects who have child collections of another objects.
ex:
Author                      Category
--Categories      --Authors 
the execution goes in an infinite loop of mapping
and it get more complex when I want model Self-join tables
ex: 
Safe     Safe
--TransferSafe(Collection<Safe>)        --TransferSafe(Collection<Safe>)
the execution goes in an infinite loop of mapping
any suggestions about a good solution or a practical mapping pattern?