Hi,

I have an entity Person with a property like:

public virtual IDictionary<Group, AdministratorRole>
AdministratorRoles

and I'd like to write a query that would give me all the groups for a
Person using the criteria API.

More specifically, a Group has a collection called PeopleInGroup and
this is the property I actually want.  If I could write a query to
return me the groups though, I'm able to get the people in the group
without any problem.

The mapping looks like:

<map name="AdministratorRoles" table="PersonAdministratorRoles"
access="field.camelcase-underscore">
      <key column="PersonId" />
      <index-many-to-many column="GroupId" class="Group" />
      <many-to-many column="RoleId" class="AdministratorRole" />
</map>

Is this possible?

Thanks,
Matt

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