IQueryOver from ICriteria

200 views Asked by At

I have this scenario:

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

How can I transform criteria back to IQueryOver()?

1

There are 1 answers

1
Gerard On BEST ANSWER

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