2009/3/17 Tyler Burd <[email protected]> > > You might want to use projections and DTOs to get what you want. Here is > an example: > > string hql = "select u.Organization.Name, u.UserName from User u "; > var qry = session.CreateQuery(); > qry.SetResultTransformer(new MyCustomDtoResultTransformer()); > return qry.List<MyCustomDto>(); >
And this mean work with relationship, have entities related and, in some certain cases, retrieve only plain info in unmapped value-objects/DTO (Data Transfer Object). -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
