Click or drag to resize

LiteCollectionTUpdateMany Method

Overload List
 NameDescription
Public methodUpdateMany(BsonExpression, BsonExpression) Update many documents based on transform expression. This expression must return a new document that will be replaced over current document (according with predicate). Eg: col.UpdateMany("{ Name: UPPER($.Name), Age }", "_id > 0")
Public methodUpdateMany(ExpressionFuncT, T, ExpressionFuncT, Boolean) Update many document based on merge current document with extend expression. Use your class with initializers. Eg: col.UpdateMany(x => new Customer { Name = x.Name.ToUpper(), Salary: 100 }, x => x.Name == "John")
Top
See Also