Bit of a newbie question as Im getting started with nHibernate.
What's the difference between NHibernate.Criterion.ICriterion
and NHibernate.ICriteria
classes and which should I use for simple "where field=value
" type filtering?
cicriterianhibernate
Bit of a newbie question as Im getting started with nHibernate.
What's the difference between NHibernate.Criterion.ICriterion
and NHibernate.ICriteria
classes and which should I use for simple "where field=value
" type filtering?
Best Answer
An ICriteria is used to represent a query. You can add ICriterions to this ICriteria to express filters.
For instance:
Or, as the documentation states: