c# - NHibernate. “Cannot simultaneously fetch multiple bags” with multiple Fetch -


first of should did not familiar nhibernate @ all, project work using orm instead of ef, don't know why. know bug can fixed splitting queries, not have idea how make using nhibernate.
here query:

query = query.where(c => c.trade.id == tradeid); query = query   .fetch(lot => lot.items)   .fetch(lot => lot.documents)   .fetch(lot => lot.tradelotapplications)   .fetchmany(lot => lot.customers)   .thenfetch(cus => cus.customer); lots = query.tolist(); 


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -