Depends on how complex your domain is and what you are calling as DTOs . Are
the DTO s data holding classes directly from db, or the DTO s that you are
sending over the wire ?

In most cases, NHibernate's mappings are good enough to handle complex
associations and relationships up to some extent. So there is no harm to use
them directly, and surely is not an antipattern, and the easiest bet on
getting all the goodies of an ORM.

If your domain model is more complex than that, then you will need seperate
set of UI objects to bind to the screens anyway.

Another option might be to generate those UI Bound objects or DTOs for the
wire from the model and domain respectively, but you need to be careful as
it may go out of hand.

Hope this makes sense, if it doesn't please elaborate.

Thanks.

On Fri, Oct 10, 2008 at 9:46 AM, Oguz Bayram <[EMAIL PROTECTED]> wrote:

> Hi,
>
> While using NHibernate, excessive usage of DTOs bothers me so much. For
> each different presentation view we have to create DTOs and my solution blow
> up DTO class files. I am wondering this would be a antipattern or any
> workaround to handle this situation?
>
> Thx
>
> Oguz BAYRAM / Istanbul
> blog : http://www.oguzbayram.com
>
> >
>


-- 
Sidar Ok
http://www.sidarok.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to