I've been trying to write a subquery using the DetachedCriteria objects and want to make my subquery use a LEFT JOIN:
Code:
DetachedCriteria myDetatchedCriteria = DetachedCriteria.For(typeof(Contact), "contact");
myDetatchedCriteria.CreateAlias("Group", "g", JoinType.LeftOuterJoin);
However, this overloaded version of CreateAlias(...) which takes a JointType doesn't appear to be available to the DetatchedCriteria object. Could someone please confirm whether or not a LEFT JOIN in a subquery is possible?
The code I'm writing at the moment is for an "Advanced Search" screen, so I don't really have the option of using HQL directly.