Vladimir Nani
Vladimir Nani

Reputation: 2884

IQueryOver from ICriteria

I have this scenario:

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

How can I transform criteria back to IQueryOver()?

Upvotes: 1

Views: 202

Answers (1)

Gerard
Gerard

Reputation: 2511

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

Upvotes: 5

Related Questions