Why IQueryOver has 2 type arguments:
QueryOver<TRoot,TSubType> is an API for retrieving entities by composing
NHibernate.Criterion.Expression objects expressed using Lambda expression
syntax.
Why IQueryOver has 2 type arguments:
QueryOver<TRoot,TSubType> is an API for retrieving entities by composing
NHibernate.Criterion.Expression objects expressed using Lambda expression
syntax.
Copyright © 2021 Jogjafile Inc.
The answer is: to support fluent syntax, and have access to root settings all the time.
not so fluent
So we can use this definition:
So having this, we can do some filtering:
and then go back to root query and set
fluent
But because of the interface
IQueryOver<TRoot, TSubType>
beeing returned all the way down, we can do that without the middle variables... we can do it in one fluent run