views:

19

answers:

1

I'm trying to use the ToFuture with the new NH Linq 3.0 provider.

This works fine:

var result = ses.Query<Parent>()
                .Where(x => x.Id == id)
                .ToFutureValue();

but when I use a Fetch/FetchMany like this:

var result = ses.Query<Parent>()
                .Where(x => x.Id == id)
                .Fetch(x => X.Child)
                .ToFutureValue();

This exception occurs:

NotSupportedException with: You can also use the AsFuture() method on NhQueryable

Any suggestions?

A: 

It's probably not implemented yet (LINQ Futures is one of the most recently added features, just a few weeks ago).

You can enter an issue at http://jira.nhforge.org/

Diego Mijelshon