Hi,
According to the release notes for NH 2.1.0 the .elements syntax was
removed in favor of the elements() function syntax, documented as a
breaking change:
* Antlr3.Runtime.dll is required
* the syntax foo.bar.baz.elements or foo.bar.baz.indices is not
longer supported. Use the alternative syntax of elements(foo.bar.baz) or
indices(foo.bar.baz) instead
Note: in some case, where a sub-select is needed, the
collection is enough example: FROM m IN CLASS Master WHERE NOT EXISTS( FROM
m.Details d WHERE NOT d.I=5 )
This appears to have been done in conjunction with the switch to the ANTLR
based parser. (It was actually present in the grammar, but then removed).
Commit 63c5874c6e092fb67468530753e8c5f3eb712e5e, 2009-04-23.
However, there are today still working test cases that use the .elements
syntax, at least FooBarTest.AutoFlush(). The way this happens seems to be
that "elements" and "indices" are still included in
CollectionProperties.cs, along with "size", "maxIndex", etc.
The .elements syntax does not appear to be documented anywhere, so I
suppose we can follow through with removing the support for it. Just
wondering if anyone here remember some history on this.
/Oskar
--
---
You received this message because you are subscribed to the Google Groups
"nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.