How do I serialize an NHibernate DetachedCriteria object?

I am looking for a solution to store NHibernate DetachedCriteria objects in a database. I tracked the NHibernateUtil and GetSerializable methods, but I'm not sure how to use it to serialize the DetachedCriteria object. Any help on this would be greatly appreciated. Thanks.

0
source share
1 answer

DetachedCriteria is serializable and because it is not connected to the session, it must be executable by simply performing normal serialization of .net objects, as described here:

http://msdn.microsoft.com/en-us/library/ms973893.aspx

, blob (NHibernateUtil.BinaryBlob.SqlType).

+2

Source: https://habr.com/ru/post/1707173/


All Articles