Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save samueleresca/fbdb1cd50dac82971784 to your computer and use it in GitHub Desktop.
Save samueleresca/fbdb1cd50dac82971784 to your computer and use it in GitHub Desktop.
[TestMethod]
public void IEnumerableBehavior()
{
IEnumerable<Product> products = dc.Product
//This expression produces an SQL query
.Where(p => p.Name.Contains("LL"));
//IEnumerable: the following statement is an in-memory query
products = products.Take<Product>(100);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment