|
From: Lee T. (JIRA) <nh...@gm...> - 2011-04-15 14:03:18
|
Any Doesn't Work
----------------
Key: NH-2654
URL: http://216.121.112.228/browse/NH-2654
Project: NHibernate
Issue Type: Bug
Components: Documentation
Affects Versions: 3.1.0
Reporter: Lee Timmins
Priority: Major
I have created my own basic blog application. For testing i have pre-populated some data such that every post contains atleast one comment (one to many relationship from Post to Comment). I have the following test:
[TestMethod]
public void Any() {
var result = _session.Query<Post>()
.Any(p => p.Comments.Count == 0);
Assert.IsFalse(result);
}
However this test fails where as in version 2 (changing Query to Linq) it worked fine.
I'd appreciate if this could be solved quickly as this is stopping me from upgrading. Thanks
--
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
|