title: MongoDB with c# Making sure records are locked while working on them
body: <p>Hi i am using mongodb as my database. My question is how can i make sure that when i do a query for one document or lots of documents. Example:</p>
  
  <pre><code>mongo.GetCollection("orders").Find(Query.EQ("OrderStatus", "unshiped")).ToList();
  </code></pre>
  
  <p>How to make sure that the documents that are in this list are locked and nobody can edit them and what ever i do in the code with this records when i loop them true and then save them it should unlock it </p>