I have a class with property of list.
public class Paperboy{
private int _id;
private string _lastname;
private string _firstname;
privat
Almost the same answer I just gave to previous NHibernate question: QueryOver IList
Based on this Q & A: NHibernate How do I query against an IList property?
Where I tried to show that (as mentioned in the documentation) we can use magical word ".elements"
:
So the query which will touch the string elements in your case
//or.Add(Restrictions.Eq("AdditionalPhoneNumbers", number));
or.Add(Restrictions.Eq("AdditionalPhoneNumbers.elements", number));
And that will support filtering IList