Hello everyone,
We are developing an Architecture. We are using WCF, NHibernate and coding using entities, not pure classes.
In this scenario I don't think that DAO should be good for us when sending an Entity, I could use it for grouping entities or making my own messages, but 90% of the time I will be sending entities, and I do not think that mapping exactly the same to DAO.
the problem here is when the entity I want to send is related with other entities. I do not want to send the related (I know about lazy, but think that I have loaded its relations), just the one for I am asking for.
What do you think?
|