I have this scenario:

  1. var query = Session.QueryOver<T>()
  2. var criteria = query.UnderlyingCriteria.SomethingThereAddCriterion()

How can I transform criteria back to IQueryOver()?

有帮助吗?

解决方案

Your criterias has been added to the UnderlyingCriteria of query. So you don't need to transform criteria to IQueryOver(). Just use query again.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top