title: How to update a generic type with MongoDB C# driver in MongoDB 2.7
body: <p>Following code from this question <a href="https://stackoverflow.com/questions/17727612/how-to-update-a-generic-type-with-mongodb-c-sharp-driver">How to update a generic type with MongoDB C# driver</a> no longer works, how to do the same in MongoDB 2.7?</p>
  
  <pre><code>void Update(T entity)
  {
      collection.Save&lt;T&gt;(entity);
  }
  </code></pre>