MongoDB .GetDatabase yields "A field initializer cannot reference the non-static field, method or property" : <p>Using MongoDB C# driver 2.4.2, try to establish some reference but getting the err for the last line regarding <strong>_db</strong>. </p>

<p>"A field initializer cannot reference the non-static field, method or property CurrentClassName._client"</p>

<p>Can't figure it out.</p>

<p>Code:</p>

<pre><code>public class MongoDatabase&lt;T&gt; : ImyDB&lt;T&gt; where T : class, new()
{
private static string _connectionString = ConfigurationManager.ConnectionStrings["db"].ConnectionString;
private string _dbName;
private MongoClient _client = new MongoClient(_connectionString);
private IMongoDatabase _db = _client.GetDatabase(_dbName);
</code></pre>
