from p in session.Query<Project>()
where p.Personprojects.Any(pp => pp.Id.PersonId == userId)
select p
select
project0_.PROJECT_ID as PROJECT1_92_,
(... lots of properties snipped...),
project0_.VALIDTODATE as VALIDTO25_92_
from PROJECT project0_
where exists (
select
(
personproj1_.PROJECT_ID,
personproj1_.PERSON_ID)
from PERSONPROJECT personproj1_
where project0_.PROJECT_ID=personproj1_.PROJECT_ID and
personproj1_.PERSON_ID=4042 /* :p0 */)
select
(
personproj1_.PROJECT_ID,
personproj1_.PERSON_ID)
select (PROJECT_ID, PERSON_ID)
from PERSONPROJECT
-Glenn
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to nhu...@googlegroups.com.
To unsubscribe from this group, send email to
nhusers+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.