Yes, this is a polymorphic query. You can use hql to create these, as
demonstrated in the documentation here:
http://www.nhforge.org/doc/nh/en/index.html#queryhql-polymorphism

I would imagine that you can get similar behavior using the criteria api and
linq to nh, but I can't say for sure.

On Wed, Aug 19, 2009 at 12:16 AM, Paul Hinett <[email protected]>wrote:

>  Hi,
>
>
>
> I think this is more of a general nhibernate question but it should be easy
> enough for you guys to answer (i hope!)
>
>
>
> I have setup a Users table which holds general user info such as username,
> password etc, then i have 2 classes which inherit from my users table called
> DJUser + MusicFanUser which each have their own properties. This works fine.
>
>
>
> However, how would I implement a search feature / simply list data from
> both classes and bring back DJ accounts + fan accounts in a single query? Is
> this even possible?
>
>
>
> Thank you!!
>
>
>
> Regards,
>
> Paul Hinett
>
>
>
> *w*: http://www.ukcreativedesigns.com | *e*: [email protected] |
> *t*: 07958 552 157
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" 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/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to