I think the expand method needs to return an INHibernateQueryable<T>
instead of IQueryable<T> so we can nest expressions like:
from m in Query.Expand("ProductTypes").Expand("ProductCategories")
where m.Date == date
select m);
Right now it can be done, but that cast is really ugly.
from m in ((INHibernateQueryable<Product>)Query).Expand
("ProductTypes")).Expand("ProductCategories")
I've managed to make it look better with the use of an Extension
method, but I think that should be the default
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"NHibernate Contrib - Development Group" 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.ar/group/nhcdevs?hl=en
-~----------~----~----~----~------~----~------~--~---