Yes, you can use the Enumerable<T> method on the query instead of List<T>.
Diego On Mon, Jul 5, 2010 at 10:41, kor <[email protected]> wrote: > hi all, i have a class Parent which references a collection of > istances of class Child. > > i need to add to this collection a list of children selected using a > hql query. > > so my code is similar to > > Parent p = GetParent(); > IList<Child> children = > Session.GetNamedQuery("GetChildren").List<Child>(); > foreach(Child c in children) > { > p.Children.Add(c); > } > > > So i'm using Child istances only to add them to the Parent.Children > collection, > my question is if it's possible to have an hql query which will return > a list of proxies? > (so in the generate hql i will only select the id) > > > -- > 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]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- 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.
