I'm about to embark on a rather complicated mapping strategy and I have a
sticking point that I'm not sure what the best track is...
Basically, I have a table per subclass schema with four subclasses. I'm
using a standard repository pattern around NHibernate (for now) that this
might not fit neatly into, which uses the LINQ provider (part of why I
might change it later for caching and lazy loading stuff support from my
mappings).
My requirement is that I must pull a list of TWO DIFFERENT subclasses at
one time, so that I can implement paging over the query set. I am not sure
how to do that...
I was thinking something along the lines of
superclassRepository.Find().Where(x => x is SubClass1 || x is
SubClass2).Skip().Take();
But I'm unclear how that would translate, or if there is a better way?
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/groups/opt_out.