If you switch to ICriteria, you can do these kind of queries. It may
depend on the inheritance strategy, but at least with one-table-per-
hierarchy it's working (maybe accidentally, but still useful)

ICriteria crit = session.CreateCriteria(typeof(Cat),"c").Add
(Expression.Eq("c.Fat", false));

IBtw, I'm using 1.2, just in case that behaviour has changed in 2.0 or
later.

--
Wolfgang

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to