title: Find and deserialization object in MongoDB
body: <p>I tried to deserialize an object with MongoDB Driver, and getting an error. my code is very similar to the example code in mongodb formal site, and I can't find where is my mistake.</p>
  
  <p>This is the error:</p>
  
  <pre><code>"Element '_id' does not match any field or property of class mongotry.place."
  </code></pre>
  
  <p>And the code:</p>
  
  <pre><code>using MongoDB.Driver;
  using MongoDB.Bson;
  
  class place{
      public string name { get; set; }
      public List&lt;int&gt; rates { get; set; }
  
      public place(string name, List&lt;int&gt; rates){...}
      public int getAvgRate(){...}             
      public override string ToString(){...}
  }
  
  class Program{
      static void Main(string[] args){           
          MongoClient client = new MongoClient();
          MongoServer server = client.GetServer();       
          MongoDatabase db = server.GetDatabase("try");
          MongoCollection&lt;place&gt; myPlaces = db.GetCollection&lt;place&gt;("places");
  
          myPlaces.Insert(new place("here", new List&lt;int&gt; {7,7,5,4,9}););
          myPlaces.Insert(new place("there", new List&lt;int&gt; { 2, 4, 1, 4});); //ok so far
  
          place placeFromDB = myPlaces.FindOne(); // &lt;-- here is the error.
          Console.WriteLine(placeFromDB.ToString());
          Console.ReadLine();
      }
  }
  </code></pre>