title: MongoDB get server
body: <p>I try to connect to server and get database. It run properly but it VS2013 show me a warning : </p>
  
  <blockquote>
    <p>Warning   1   'MongoDB.Driver.MongoClientExtensions.GetServer(MongoDB.Driver.MongoClient)' is obsolete: 'Use the new API instead.</p>
  </blockquote>
  
  <pre><code>        string connectionString = "mongodb://localhost:27017";
          MongoClientSettings settings = MongoClientSettings.FromUrl(new MongoUrl(connectionString));
          MongoClient mongoClient = new MongoClient(settings);
          var server = mongoClient.GetServer();
          var db = server.GetDatabase("bookstore");
          var bookCollection = db.GetCollection&lt;Book&gt;("Book");
  </code></pre>
  
  <p>Can someone help me solve this ? Tks for reading.</p>