You can simply do:
var Collection = database.GetCollection<Mongo_Class>("documentname");
var filter = Builders<Mongo_Class>.Filter.Eq("Id", Value) & Builders<Mongo_Class>.Filter.Eq("name", value);
var FilterList = Collection.Find(filter).ToList();
You can simply do:
var Collection = database.GetCollection<Mongo_Class>("documentname");
var filter = Builders<Mongo_Class>.Filter.Eq("Id", Value) & Builders<Mongo_Class>.Filter.Eq("name", value);
var FilterList = Collection.Find(filter).ToList();
No comments:
Post a Comment