I have an object called Element (see class outline below) which contains a list of Child elements (which can contain a list of child elements).I would like to retrieve an Element from the DB, however I would like to retrieve only the children that meet a certain criteria (e.g Element.Name like %ton%) , how can this be accomplished via ICriteria/HQL ( I realize that I can do this via SQL)?
public abstract class Element : Domain
{
protected Element()
: base()
{
}
private IList<Element> _ChildElements;
private string Name;
}
TIA,
Vinny
|