Beispiel #1
0
 public async Task SaveAsync(DataCoordinator obj)
 {
     await _collection.ReplaceOneAsync(a => a.Id == obj.Id, obj, new UpdateOptions { IsUpsert = true });
 }
Beispiel #2
0
 public void Save(DataCoordinator obj)
 {
     _collection.ReplaceOne(a => a.Id == obj.Id, obj, new UpdateOptions { IsUpsert = true });
 }