I think I'm missing something here.

I've got some code that builds DetatchedCriteria instances that always
end with .SetProjection(Projections.ID());

I'd like to use these in a Subquery statement later on, but I can't
figure out the easiest way to do it.

It seems like you can do Subqueries.PropertyIn(IDFieldName, DCthing),
but in order for that to work you will have to know what the ID field
is named for any given class. Is there an easy way to get the name of
the ID field? I'm looking in the IClassMetadata area and nothing is
immediately apparent.

Is there a better Subquery I should use for this? I was surprised not
to see a Subqueries.IDIn(DetatchedCriteria DC) method, maybe it's
under a different name?

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