I am trying to update several records with a database through NHibernate.
The direct SQL query looks like:
update records set sortOrder = sortOrder +1 where sortOrder >= 3 and sortOrder <= 100
Is this possible in NHibernate? I don't want to take the approach of pulling each record and updating them one at a time since this method can be used on databases with several thousand records.