Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save samueleresca/0b18a231e9224d3d52cf to your computer and use it in GitHub Desktop.
Save samueleresca/0b18a231e9224d3d52cf to your computer and use it in GitHub Desktop.
[TestMethod]
public void IQueryableBehavior()
{
IQueryable<Product> list = dc.Product
//IQueryable: this expression produces an SQL query
.Where(p => p.Name.Contains("LL"));
//IQueryable: this expression produces an SQL query
list = list.Take<Product>(100);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment