I read this article about ravendb-related activities, but it did not show me how to update a set of documents through C #. I would like to update the field in all documents that meet certain criteria. Or, to put it another way, I would like to take this C # and make it more efficient:
var session = db.GetSession(); foreach(var data in session.Query<Data>().Where(d => d.Color == "Red")) { data.Color = "Green"; session.Store(data); } session.SaveChanges();
source share