title: How to get BsonElement value in dotnet core to get the string of mongodb field name
body: <p>hi every body i am stil new in mongo but i hop to get help of your great experiances,
  in my project i am using BsonElement to name all field for example :</p>
  
  <pre><code>        [BsonElement("isremoved")]
          public bool IsRemoved { get; set; }
  </code></pre>
  
  <p>i have query in method as :</p>
  
  <pre><code>        public async Task&lt;Player&gt; Delete(string PlayerId)
          {
              var filter = Builders&lt;Player&gt;.Filter.And(Builders&lt;Player&gt;.Filter.Eq(x =&gt; x.PlayerId, PlayerId));
              var item = Builders&lt;Player&gt;.Update.Combine(Builders&lt;Player&gt;.Update.Set("isremoved", true));
              return await _dbCollection.FindOneAndUpdateAsync(filter, item);
          }
  </code></pre>
  
  <p>i think this not best way to build this query , and we actually intend to change fields name in production to be short name as 'isr' in replace of 'isremoved', in this case how to get the BsonElement element value from class property itself (IsRemoved)</p>