Hi there,

Here is my scenario,

interface IOwner { ... }
class Foo : IOwner {
   Guid Id { ... }
}
class Bar : IOwner {
   Guid Id { ... }
}

class Tag
{
   Guid Id { ... }
   IOwner OwnedBy { ... }
}


e il mapping della property OwnedBy di Tag è:
<any name="OwnedBy" id-type="System.Guid" meta-type="System.String"
cascade="none">
     <meta-value value="FOO" class="Foo"/>
     <meta-value value="BAR" class="Bar"/>
     <column name="OwnerType"/>
     <column name="OwnerId"/>
</any>

In my application I'm in this situation:

IQueryable<Foo> fooSelection = ...;

and I have to select all the Tags whose owner is "contained" in fooSelection.
Is it possible? Any hint?
I'm using LINQ on NH 3.0.0.4.

Ciao!,
Giulio

--

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