I have 2 tables, Plan and Ticket. I want all the records that are in TravelPlan but not in Ticket.
Template.Criteria.CreateCriteria("Plan")
.Add(Subqueries.PropertyNotIn("UserID",
DetachedCriteria.For(typeof(Ticket))
.SetProjection(Projections.Property("UID"))));
The above query doesnt return any records..