O'Reilly logo

Programming Reactive Extensions and LINQ by Paul Betts, Jesse Liberty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using LINQ to SQL

One of the great things about LINQ to SQL is that the syntax is identical to LINQ to Objects. LINQ to SQL is a powerful demonstration of one of the core concepts of functional programming: the separation of declaration and mechanism. What does that mean? In LINQ, you describe how the desired result is related to the input data using operators. While these operators have a consistent definition of how they will act on data, what they don't do is specify how they do the work. Since operators are not tied to a specific implementation, frameworks are free to implement operators in different ways.

In this case, LINQ to SQL will actually take our query and transform it into an internal optimized representation that it will send directly ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required