You can use LINQ
var collection = _db.GetCollection("users"); return (from x in collection.AsQueryable() select x["something"]).toList();
Or maybe if you are somewhere close to the version of Mongo Driver 2.7, the following request will be compiled. (note also that the generic Users parameter is redundant here)
List<string> q2=(from x in collection.AsQueryable<users>() select x.Name).ToList();
Rahul tripathi
source share