You are previewing Essential LINQ.

Essential LINQ

Cover of Essential LINQ by Charlie Calvert... Published by Addison-Wesley Professional
O'Reilly logo

Chapter 8. Reading Objects with LINQ to SQL

Let’s expand our quick tour to learn further details of querying and retrieving objects using LINQ to SQL. LINQ to SQL implements the standard query operators described in Chapter 5, “Writing Query Expressions,” to retrieve objects from a relational database. It uses the mapping of classes to tables to translate LINQ queries to SQL commands and then materializes objects from the rows returned. The objects can be related to each other in a graph of objects that is managed by LINQ to SQL on your behalf.

Using LINQ and Databases

Relational databases contain a large amount of valuable data that applications want to use. An application written in a language such as C# can significantly benefit from querying ...

The best content for your career. Discover unlimited learning on demand for around $1/day.