Hello
is it possible to record sql queries being generated by nhibernate criteria ?, i have a disconnected scenario where i can use these query hashes as keys to cache result sets on client.
many thanks
Hello
is it possible to record sql queries being generated by nhibernate criteria ?, i have a disconnected scenario where i can use these query hashes as keys to cache result sets on client.
many thanks
I don't think that it is possible that easily. (It probably is using events, but I wouldn't do this) You should put the calls to get objects behind an interface. You can exchange the implementation to either call the server or take objects from the cache.
I wouldn't use NHibernate Criteria on the client side.
you could try using nh prof. i believe it has the functionality you desire