Skip to content

Instantly share code, notes, and snippets.

@markembling
Created January 15, 2010 11:34
Show Gist options
  • Save markembling/277981 to your computer and use it in GitHub Desktop.
Save markembling/277981 to your computer and use it in GitHub Desktop.
// Gets all items more expensive than £5.
var q = mongoContext.Query<Item>()
.Where(x => x.Price)
.IsGreaterThan(5);
// Gets all Smiths in the given cities.
var q2 = mongoContext.Query<Customer>()
.Where(x => x.Name).IsEqualTo("Smith")
.Where(x => x.City).IsIn("Bournemouth","Farnborough","London");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment