Hi folks!
When creating a criteria for NHibernate all criteria are added as AND
.
For instance:
session.CreateCriteria(typeof(someobject))
.Add(critiera)
.Add(other_criteria)
then end result will be
SELECT ... FROM ... WHERE criteria AND other_criteria
I would like to tell NHibernate to add the criterias as "OR"
SELECT ... FROM ... WHERE criteria OR other_criteria
Any help is appreciated
/Regards Vinblad