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 ...

Get Essential LINQ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.