IQueryable support for persistent collections

Description

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)

Environment

None

Attachments

2

Activity

Show:

Frédéric Delaporte September 13, 2017 at 11:14 PM
Edited

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:

https://github.com/diegose/NHibernate.Diegose/pull/2

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

Fixed

Details

Assignee

Reporter

Labels

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?