Can NHibernate update some (not all) fields in the table row without retrieving any data? I know Id of the entity.
You can find all the examples here:
http://nhibernate.info/doc/nh/en/index.html#batch-direct
session.CreateQuery("update Foo f set f.Date = :date where f.Id = :id")
.SetParameter("date", DateTime.Now)
.SetParameter("id", 25)
.ExecuteUpdate();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With