Is it possible to query an <Any/> collection by the type. Take the
pretend Any mapping below. Can I find all Circles in the ToyBox using
linq?

<class name=ToyBox >
<any name="Items" meta-type="int" id-type="int">
        <meta-value class="1" value="Square"/>
        <meta-value class="2" value="Circle"/>
        <column name="entityTypeId"/>
        <column name="entityId"/>
      </any>
</class>

Here is how I would have hoped to query it.

Session.Query<ToyBox>().Where(x => x.Items.GetType() ==
typeof(Circle))

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