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
Post a Comment