Hi! Is there anyway I can query like this in NHibernate Linq:
from parentClass in session.Linq<ParentClass>() where (parentClass.GetType() == typeof(SubClass1) && ((SubClass1) parentClass).SubClass1Property = 1) || (parentClass.GetType() == typeof(SubClass2) && ((SubClass2) parentClass).SubClass2Property = 2) I can do it in 2 query. But if there is some optimal solution, I would like to use it. Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
