Hints: HQL: http://www.nhforge.org/doc/nh/en/#queryhql-joins Criteria: http://www.nhforge.org/doc/nh/en/#querycriteria-associations
The use of HQL and Criteria queries is explained in the AR docs. -Markus 2009/2/24 Mark Jensen <[email protected]>: > > Hi > > Can someone show me how i could make this work > > I need to find all the parents that has a child with a given value. > > public class Parent > { > public IList<Child> Children; > > public List<Parent> FindParents(string value) > { > // Insert code > } > } > > public class Child > { > public string Value; > } > > /Mark > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" 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/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
