Created
December 3, 2015 20:15
-
-
Save samueleresca/fbdb1cd50dac82971784 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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