예제 #1
0
 public void UpdatePerson(People person)
 {
     var query = Query<People>.EQ(e => e._id, person._id);
     var update = Update<People>.Replace(person); // update modifiers
     _database.GetCollection<People>(_config.collections.People).Update(query, update);
 }
예제 #2
0
 public void AddPerson(People person)
 {
     _database.GetCollection<People>(_config.collections.People).Save(person);
 }