Beispiel #1
0
 public void Update <T>(string collection, Filters <T> filters, Updates <T> updates)
 {
     GetCollection <T>(collection).UpdateOne(filters.Combine(), updates.Combine());
 }
Beispiel #2
0
        public UpdateResult Update <T>(string collection, Expression <Func <T, bool> > filter, Updates <T> updates)
        {
            var result = GetCollection <T>(collection).UpdateOne(filter, updates.Combine());

            return(new UpdateResult(result));
        }