savinger
savinger

Reputation: 6714

How can I do a $regex call with SharpRepository?

We are using SharpRepository. How can we do a LIKE call or use regex?

Upvotes: 0

Views: 45

Answers (1)

Jeff Treuting
Jeff Treuting

Reputation: 13510

I'm not 100% sure what LINQ statements the MongoDb LINQ driver can handle, but I would start by trying something like

repo.Find(x => x.Name.Contains("jeff"));

Upvotes: 1

Related Questions