I have this scenario:
var query = Session.QueryOver<T>()
var criteria = query.UnderlyingCriteria.SomethingThereAddCriterion()
How can I transform criteria back to IQueryOver()?
I have this scenario:
var query = Session.QueryOver<T>()
var criteria = query.UnderlyingCriteria.SomethingThereAddCriterion()
How can I transform criteria back to IQueryOver()?
Your criterias has been added to the
UnderlyingCriteria
ofquery
. So you don't need to transformcriteria
to IQueryOver(). Just usequery
again.