how can search data on multiple field on mongoDB with C#?

254 views Asked by At

I am using MongoDB with C# Driver I try to fetch data based on search as an like from collection using following code:

col.Find(new BsonDocument(new BsonElement("Name", new BsonRegularExpression(search)))).ToList();

it's work for single field data search but how can do with this multiple field.

0

There are 0 answers