I'm trying to do the following:
var query = session.QueryOver<BaseEntity>()
.JoinAlias(x => x.FirstChild, () => FirstChildAlias)
.JoinAlias(x => x.SecondChild, () => SecondChildAlias)
.JoinAlias(() => SecondChildAlias.ListOfElementsChild, () => ListOfElementsChildAlias)
.Where(() => FirstChild.Text == "value 1")
.And(() => ListOfElementsChildAlias.Text =="value2");
How can I make constraints on the inner child which is of type List!? how can I get all BaseEntity elements that has a list with at least one child in the list having it's Text value equal to "value2"?