I believe this is a bug, but wanted to ask here before posting an official issue in the JIRA.
I am trying to run a query like this:
using (var session = OpenSession())
{
var idsICareAbout = new[] { 1, 2, 10 };
var results = from e in session.Query<Entity>()
where idsICareAbout.Contains(e.Id)
select e;
var read = results.ToFuture().ToList();
}
which I expect generate SQL similar to SELECT ... FROM Entity WHERE Id IN (1, 2, 10).
NH currently throws a KeyNotFoundException, but works correctly if ".ToFuture()" is removed. I have some test cases I can submit, but just wanted to confirm this as a bug before doing so. I also did some searching on the JIRA, but didn't find anything that sounded applicable.
Thanks!