|
While not directly related to NHibernate, this question is related to architectures/applications within which NHibernate is used. I am working on a system where an NHibernate DAL is exposed via a web service to be used by a web application, and am wondering what the best approach is for implementing DTOMapping functionality. I would like to avoid having to write (or generate) repetitive "Map DTO to entity"/"map entity to DTO" code, but am wondering if this would be possible with Reflection, and whether the time saved in development would be outweighed by the loss of performance from using reflection...
I've been unable to find a great deal of discussion on this elsewhere, which suggests that people hand crank/generate their code...
|