From: Diego M. (JIRA) <nh...@gm...> - 2010-09-01 03:15:41
|
IQueryable support for persistent collections --------------------------------------------- Key: NH-2319 URL: http://216.121.112.228/browse/NH-2319 Project: NHibernate Issue Type: Patch Components: Core, Linq Provider Affects Versions: 3.0.0.Alpha2 Reporter: Diego Mijelshon Priority: Minor Attachments: QueryableCollections.patch 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) -- 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 |
From: Fabio M. (JIRA) <nh...@gm...> - 2010-09-03 04:08:30
|
[ http://216.121.112.228/browse/NH-2319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo updated NH-2319: ---------------------------- Issue Type: New Feature (was: Patch) > IQueryable support for persistent collections > --------------------------------------------- > > Key: NH-2319 > URL: http://216.121.112.228/browse/NH-2319 > Project: NHibernate > Issue Type: New Feature > Components: Core, Linq Provider > Affects Versions: 3.0.0.Alpha2 > Reporter: Diego Mijelshon > Priority: Minor > Attachments: QueryableCollections.patch > > > 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) -- 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 |
From: Diego M. (JIRA) <nh...@gm...> - 2010-09-03 04:33:39
|
[ http://216.121.112.228/browse/NH-2319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19774#action_19774 ] Diego Mijelshon commented on NH-2319: ------------------------------------- This implementation only supports bidirectional one-to-many collections, as it uses the corresponding many-to-one to create the LINQ query > IQueryable support for persistent collections > --------------------------------------------- > > Key: NH-2319 > URL: http://216.121.112.228/browse/NH-2319 > Project: NHibernate > Issue Type: New Feature > Components: Core, Linq Provider > Affects Versions: 3.0.0.Alpha2 > Reporter: Diego Mijelshon > Priority: Minor > Attachments: QueryableCollections.patch > > > 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) -- 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 |
From: Diego M. (JIRA) <nh...@gm...> - 2010-09-03 06:24:35
|
[ http://216.121.112.228/browse/NH-2319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Diego Mijelshon updated NH-2319: -------------------------------- Attachment: QueryableCollectionsV2.patch Better implementation. Made more clear that only bidirectional one-to-many bag and set are supported. Added tests to ensure unsupported cases use LINQ-to-objects instead of failing. > IQueryable support for persistent collections > --------------------------------------------- > > Key: NH-2319 > URL: http://216.121.112.228/browse/NH-2319 > Project: NHibernate > Issue Type: New Feature > Components: Core, Linq Provider > Affects Versions: 3.0.0.Alpha2 > Reporter: Diego Mijelshon > Priority: Minor > Attachments: QueryableCollections.patch, QueryableCollectionsV2.patch > > > 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) -- 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 |
From: Fabio M. (JIRA) <nh...@gm...> - 2010-09-03 12:51:54
|
[ http://216.121.112.228/browse/NH-2319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19778#action_19778 ] Fabio Maulo commented on NH-2319: --------------------------------- So... the solution is that instead work as CreateFilter now is only more clear that it work only for <bag> and <set> with bidirectional one-to-many. Have you an issue tracker where I can add all others requests that we will receive after apply this patch ? Support for: <map>, <list>, <idbag>, <array>, collection of components, many-to-many, collection of elements, <map> with elements key, <map> with key-many-to-one, <map> with component key, <map> with elements value, <map> with component value > IQueryable support for persistent collections > --------------------------------------------- > > Key: NH-2319 > URL: http://216.121.112.228/browse/NH-2319 > Project: NHibernate > Issue Type: New Feature > Components: Core, Linq Provider > Affects Versions: 3.0.0.Alpha2 > Reporter: Diego Mijelshon > Priority: Minor > Attachments: QueryableCollections.patch, QueryableCollectionsV2.patch > > > 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) -- 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 |
From: Diego M. (JIRA) <nh...@gm...> - 2010-09-03 13:04:19
|
[ http://216.121.112.228/browse/NH-2319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19780#action_19780 ] Diego Mijelshon commented on NH-2319: ------------------------------------- Sure, the tracker is at http://whythesarcasm.com/issues/windteam I believe a limited feature is better than no feature. I'll keep working on it, though, as I'd really like it to work with more cases. > IQueryable support for persistent collections > --------------------------------------------- > > Key: NH-2319 > URL: http://216.121.112.228/browse/NH-2319 > Project: NHibernate > Issue Type: New Feature > Components: Core, Linq Provider > Affects Versions: 3.0.0.Alpha2 > Reporter: Diego Mijelshon > Priority: Minor > Attachments: QueryableCollections.patch, QueryableCollectionsV2.patch > > > 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) -- 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 |
From: Fabio M. (JIRA) <nh...@gm...> - 2010-09-03 13:28:56
|
[ http://216.121.112.228/browse/NH-2319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19781#action_19781 ] Fabio Maulo commented on NH-2319: --------------------------------- These kind of behavior is completely injectable without touch NH Core. You can implements your Persistent collections and inject it through ICollectionTypeFactory; then you can public your collection and your ICollectionTypeFactory in some place and maintain it through your preferred issue tracker. > IQueryable support for persistent collections > --------------------------------------------- > > Key: NH-2319 > URL: http://216.121.112.228/browse/NH-2319 > Project: NHibernate > Issue Type: New Feature > Components: Core, Linq Provider > Affects Versions: 3.0.0.Alpha2 > Reporter: Diego Mijelshon > Priority: Minor > Attachments: QueryableCollections.patch, QueryableCollectionsV2.patch > > > 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) -- 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 |
From: Diego M. (JIRA) <nh...@gm...> - 2010-09-03 13:56:57
|
[ http://216.121.112.228/browse/NH-2319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19782#action_19782 ] Diego Mijelshon commented on NH-2319: ------------------------------------- I'm completely aware of that. The reason to do it in NH core is to add a feature that I belive: - Is useful for many people - Should be easily discoverable (having it as an addin defeats that purpose) - Is usually requested by newcomers to NH, which would certainly love to have this readily available Whatever. In any case, I'll probably talk to José to include it in uNhAddIns meanwhile. > IQueryable support for persistent collections > --------------------------------------------- > > Key: NH-2319 > URL: http://216.121.112.228/browse/NH-2319 > Project: NHibernate > Issue Type: New Feature > Components: Core, Linq Provider > Affects Versions: 3.0.0.Alpha2 > Reporter: Diego Mijelshon > Priority: Minor > Attachments: QueryableCollections.patch, QueryableCollectionsV2.patch > > > 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) -- 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 |
From: Fabio M. (JIRA) <nh...@gm...> - 2011-05-24 14:55:02
|
[ http://216.121.112.228/browse/NH-2319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21180#action_21180 ] Fabio Maulo commented on NH-2319: --------------------------------- We are closer to one year... Have you some news ? > IQueryable support for persistent collections > --------------------------------------------- > > Key: NH-2319 > URL: http://216.121.112.228/browse/NH-2319 > Project: NHibernate > Issue Type: New Feature > Components: Core, Linq Provider > Affects Versions: 3.0.0.Alpha2 > Reporter: Diego Mijelshon > Priority: Minor > Attachments: QueryableCollections.patch, QueryableCollectionsV2.patch > > > 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) -- 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 |
From: Diego M. (JIRA) <nh...@gm...> - 2011-05-24 16:09:02
|
[ http://216.121.112.228/browse/NH-2319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21184#action_21184 ] Diego Mijelshon commented on NH-2319: ------------------------------------- More like 9 months, but yeah... I haven't had time to do this, plus I'm working in a project with EF now :-( The general scenario has changed, though. With NuGet, I could publish this as an addon more easily. But I still feel like this could be part of the core; don't close it yet. > IQueryable support for persistent collections > --------------------------------------------- > > Key: NH-2319 > URL: http://216.121.112.228/browse/NH-2319 > Project: NHibernate > Issue Type: New Feature > Components: Core, Linq Provider > Affects Versions: 3.0.0.Alpha2 > Reporter: Diego Mijelshon > Priority: Minor > Attachments: QueryableCollections.patch, QueryableCollectionsV2.patch > > > 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) -- 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 |