From: Fabio M. (JIRA) <nh...@gm...> - 2011-05-12 16:28:04
|
[ http://216.121.112.228/browse/NH-2421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo resolved NH-2421. ----------------------------- Resolution: Fixed Fix Version/s: 3.2.0Beta1 > NotSupportedException text in ToFuture and ToFutureValue does not make sense (or help) > -------------------------------------------------------------------------------------- > > Key: NH-2421 > URL: http://216.121.112.228/browse/NH-2421 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.0.0.CR1 > Reporter: Michael Hart > Priority: Minor > Fix For: 3.2.0Beta1 > > > Current text of the exception thrown is "You can also use the AsFuture() method on NhQueryable". > This exception is thrown if the type is *not* an NhQueryable already, so it actually doesn't make sense - or at least, if it does make a little sense, it certainly doesn't help the user. > This exception is thrown for example if you try to call ToFuture after a Fetch. > var result = ses.Query<Child>() > .Fetch(x => x.Parent) > .ToFuture(); > I believe the exception should say something along the lines of: "You can only use the ToFuture() method on an NhQueryable". -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |