Practical Entity Framework by Brian L. Gorman

Practical Entity Framework by Brian L. Gorman

Author:Brian L. Gorman
Language: eng
Format: epub
ISBN: 9781484260449
Publisher: Apress


foreach (var person in result)

In the first example, the call to get the results ToList will bring back all the results in the table, and then iterate those results to sort on all of the table rows, whereas in the second query, the deferred execution allows for the query to apply the transformations prior to the execution, thereby only needing to work with the limited results. As would be expected, the second query can perform much better in most situations.

Issue #2: Not disconnecting your data



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.