You can use result transformer to do this, certainly. It just seems like it
is totally not worth the effort.

On Fri, Jan 16, 2009 at 5:37 PM, epitka <[email protected]> wrote:

>
> So, basically, there is nothing like in LLBLGenPro where I can project
> into DataTable data from several entities. The reason for this is so I
> don't have to hydrate all objects just to show a list screen.  I don't
> know enough about NH, maybe it is not performance issue at all.
>
> On Jan 16, 4:26 pm, Ayende Rahien <[email protected]> wrote:
> > http://ayende.com/Blog/archive/2007/05/09/Converting-an-object-collec...
> >
> > On Fri, Jan 16, 2009 at 5:19 PM, epitka <[email protected]> wrote:
> >
> > > I'll try it again.
> >
> > > I have entity Invoice and entity LineItems. I need to fetch all
> > > invoices and project following properties in to DataTable:
> > > Invoice.Number, Invoice.Date, Invoice.Total  and number of LineItems
> > > associated with an invoice. I do not have access to session so I am
> > > trying to use DetachedCriteria.
> >
> > > On Jan 16, 4:15 pm, Ayende Rahien <[email protected]> wrote:
> > > > Since I can't even understand the question, no.
> >
> > > > On Fri, Jan 16, 2009 at 5:13 PM, epitka <[email protected]>
> wrote:
> >
> > > > > Can somebody show me how to create a projection to a DataTable that
> > > > > would have some properties of a Parent object, count of the
> children
> > > > > using DetachedCriteria. Please I need this very bad.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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