Wait a second, I'm confused. a) I start with an HQL query, which is just a string. b) NH is designed to apply this HQL to a database, by first converting to ANTLR c) I want to apply the HQL to an in-memory collection instead d) so, I could use the LINQ equivalent, if it can be generated from the HQL e) since LINQ and HQL get converted to ANTLR expression, I would need
HQL ==> ANTLR ===> LINQ f) this may be currently impossible On Nov 16, 11:12 am, Stefan Wenig <[email protected]> wrote: > You're right, I skipped a step. I once asked steve strong whether he > could emit the HQL as a string for diagnostics. He said: easily. (much > easier than serializing and deserializing LINQ in any case...) > > but anyway, I digress. > > On 15 Nov., 11:55, Stefan Wenig <[email protected]> wrote: > > > BTW, internally, LINQ is converted to HQL. There might be a way to > > extract, save and execute this HQL. > > > On 13 Nov., 20:06, Jorge <[email protected]> wrote: > > > > yeah, I guess I will store a linq query along with the HQL. > > > Problem is, LINQ cannot be serialized to disk, while HQL can. > > > So, if HQL could be converted to LINQ, then this would be the nicest > > > solution. > > > > On Nov 13, 8:09 am, Jason Meckley <[email protected]> wrote: > > > > > that would be linq then :) > > > > > On Nov 12, 8:22 pm, Jorge <[email protected]> wrote: > > > > > > Hello! > > > > > Is it possible to take an HQL query and apply it to a collection of > > > > > entities in memory? > > > > > Something similar to LINQ? > > > > > > Thanks! > > > > > Jorge- Zitierten Text ausblenden - > > > > - Zitierten Text anzeigen -- Zitierten Text ausblenden - > > > - Zitierten Text anzeigen - > > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
