Exemple #1
0
 public void UpdateAccount(Account acc)
 {
     var query = Query<Account>.EQ(e => e.Id, acc.Id);
     var update = Update<Account>
         .Set(e => e.LastAddress, acc.LastAddress);
     m_Collection.Update(query, update);
 }
Exemple #2
0
 public void AddAccount(Account acc)
 {
     m_Collection.Insert(acc);
 }