i am using official mongodb c# driver.
i want to query mongodb simliar to SQL Like
something like db.users.find({name:/Joe/}
in c# driver
Tell me more
×
Stack Overflow is a question and answer site for
professional and enthusiast programmers. It's 100% free, no registration required.
|
|||
c# query will looks like:
Update:As per @RoberStam suggestion, there is more simple way to do this:
|
||||
|
MongoDB C# driver has a BsonRegex type that you can use. Regex is the closest you will get to the SQL Note that prefixed Regexes can use indexes: |
|||
|
MongoRegex
for that. stackoverflow.com/questions/2527443/… – ssg Dec 5 '11 at 7:46