|
From: Michael H. (JIRA) <nh...@gm...> - 2010-11-23 05:53:29
|
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
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
|