I have simple classes:
public class Order
{
public int Id {get;set;}
public IList<Name> Names{get;set;}
}
public class Name
{
public int Id {get;set;}
public int LangId {get;set;}
public string LocalName {get;set;}
}
The quesetion is how to query subcollection of Order to get all that have some Order.Names.LocalName (something like this):
IList<Order> orders = repository.GetByProductLocalName("laptop");
I would like to use new NH3 feature QueryOver, not using Linq (I'v found some solutions in SO but all of them uses Linq).