I have a simple criteria with NHibenate spatial function and I want to get the HQL statement from the criteria. The criteria:
Session .CreateCriteria<MyObject>() .Add(Expression.Not(SpatialRestrictions.Disjoint("Extent", IGeometryObject");