IQueryOver from ICriteria
-
09-06-2021 - |
Frage
I have this scenario:
var query = Session.QueryOver<T>()
var criteria = query.UnderlyingCriteria.SomethingThereAddCriterion()
How can I transform criteria back to IQueryOver()?
Lösung
Your criterias has been added to the UnderlyingCriteria
of query
. So you don't need to transform criteria
to IQueryOver(). Just use query
again.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow