Is it possible to join 3 ICriteria together with OR statement not AND?
ICriteria criteriaCity = NHibernateSession.CreateCriteria(typeof(Advertisements))
.CreateCriteria(AdvertisementsProperties.City.ToString(), "city").
Add(Restrictions.Or(
Restrictions.Like("city." + CitiesProperties.Name.ToString(), text, MatchMode.Anywhere),
Restrictions.Like("city." + CitiesProperties.SlovenianName.ToString(), text, MatchMode.Anywhere)));
ICriteria criteriaArea = NHibernateSession.CreateCriteria(typeof(Advertisements))
.CreateCriteria(AdvertisementsProperties.Area.ToString(), "area").
Add(Restrictions.Or(
Restrictions.Like("area." + AreasProperties.Name.ToString(), text, MatchMode.Anywhere),
Restrictions.Like("area." + AreasProperties.SlovenianName.ToString(), text, MatchMode.Anywhere)));
ICriteria criteriaCountry = NHibernateSession.CreateCriteria(typeof(Advertisements))
.CreateCriteria(AdvertisementsProperties.Country.ToString(), "country").
Add(Restrictions.Or(
Restrictions.Like("country." + CountriesProperties.Name.ToString(), text, MatchMode.Anywhere),
Restrictions.Like("country." + CountriesProperties.SlovenianName.ToString(), text, MatchMode.Anywhere)));
Regards