I have a data structure that looks something like this:
public class Foo{
public Bar Property;
}
public class Bar{
public List<Baz> BazItems;
}
public class Baz{
public long EntityKey;
}
In my code, I have a List<long> ValidKeys
of entity keys that should correspond with Foo.Bar.bazItems. I'm trying to write a QueryOver statement to compare all Foo.Bar.BazItems against my list of valid keys. I want only the Foo items who have an exact match of .Bar.bazItems
to the list of ValidKeys
(no more no fewer).
I'm not sure how to accomplish this. I need something like:
fooRepo.QueryOver<Foo>()
.Where(f => f.Bar.BazItems.compareAgainst(ValidKeys))
At this point I'm not sure where to go. I need to then iterate over each BazItems.EntityKeys to compare each one against my ValidKeys
but nothing I have found on QueryOver statements allows this. If this is possible, any help would be appreciated.