Hi Tuna,
Your answer is appreciated.
> DetachedCriteria dc = DetachedCriteria.For<PPC>("ppc")
> .Add(Restrictions.Eq("ppc.Id","i.Id"))
> .SetProjection(Projections.Count());
>
> IList<Index> papers = session
> .CreateCriteria(typeof(Index),"i")
> .CreateAlias("Order", "Order")
> .Add(Restrictions.Eq("Order.Status",4))
> .Add(Restrictions.Eq(Projections.Subquery(dc),0));
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---