Assuming that I have setup NHibernate data context with all relations, tables, connection etc.
How I would convert an instantiated .NET Expression (actually it's not a full SELECT but just a WHERE expression) to an SQL string?
I've seen many references. Like using ExpressionVisitor or building IQueryable Provider, but I believe NHibernate 3 has all these implementations and I just have to combine some classes to achieve the goal. Ant ideas?