Why Query Expressions?
LINQ is the concatenation of LIN and Q. Trivial as this might seem, it’s quite important to understand those are the two core pieces of the puzzle being presented here. The latter part is clear: We want provide a way to query data across different domains such as in-memory, relational, and hierarchical, but also more. This mission can be separated from the former part, which has to do with language integration to allow more natural ways to express queries.
To set the scene, let’s take a look at a totally different language: Haskell, a pure functional programming language. With a decreased emphasis on imperative-style code, programs written in a functional style tend to make more operations data driven. For example, instead ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access