IQueryable support for persistent collections
Description
Environment
None
Attachments
2
is duplicated by
Activity
Show:
Frédéric Delaporte September 13, 2017 at 11:14 PMEdited
The implementation done by Alexander and myself for v5.0 supports all collection cases (bag, set, list, idbag, map, bidi or unidi). The map case is supported by using AsQueryable
on the dictionary Values
property.
Ricardo Peres October 10, 2014 at 1:30 PM
Why not include this in 4.1?
Adrian Phinney December 8, 2013 at 3:18 PM
I have an open pull request to Diego's project that has some optimizations and fixes:
Diego Mijelshon May 9, 2013 at 11:20 PM
Save a detail here and there, we did pretty much the same
I started with that, and then implemented persistent collection types. This allows querying from the domain model without references to NHibernate.
Ricardo Peres May 9, 2013 at 7:00 PM
I implemented something like this some time ago: http://weblogs.asp.net/ricardoperes/archive/2012/01/18/querying-an-uninitialized-collection-with-nhibernate.aspx
Fixed
Details
Details
Assignee
Alex Zaytsev
Alex ZaytsevReporter
Diego Mijelshon
Diego MijelshonLabels
Components
Fix versions
Affects versions
Priority
Who's Looking?
Open Who's Looking?
Created August 31, 2010 at 8:07 PM
Updated September 13, 2017 at 11:15 PM
Resolved September 13, 2017 at 9:24 PM
Who's Looking?
With this patch, persistent collections can be queried in the server by client code even without referencing NHibernate, by using the standard AsQueryable extension method.
And advantage of that is that the code will work seamlessly even in unit tests (it will use an EnumerableQuery internally)