I just started working on a project that uses Entity Framework. Prevoiusly, the app passed the EF entities around, and they were fully populated, so each section of code was able to access properties within properties with properties...
I just created domain entities and I want to map the EF entities to these domain entities. It's basically a 1-1 mapping. How is this supposed to be done? There is a T4 template that will map the EF entities to POCOs, but it only maps one level deep. What if I want to access Person -> Car -> Engine? How am I supposed to go from the EF structure to the POCO structure and have the mapping work all the way through the hierarchy?