How to fetch data from MongoDB collection in C# using Regular Expression?
问题 I am using MongoDB.Drivers nuget package in my MVC (C#) web application to communication with MongoDB database. Now, I want to fetch data based on specific column and it's value. I used below code to fetch data. var findValue = "John"; var clientTest1 = new MongoClient("mongodb://localhost:XXXXX"); var dbTest1 = clientTest1.GetDatabase("Temp_DB"); var empCollection = dbTest1.GetCollection<Employee>("Employee"); var builder1 = Builders<Employee>.Filter; var filter1 = builder1.Empty; var