Conclusion
Over the years, several different query languages have been developed, each designed to target a particular data source. Popular examples are SQL for relational databases and XQuery for XML documents. Another good example is the SQL-ish dialect that the Select method of the ADO.NET DataTable class recognizes. With LINQ, developers can focus on just one set of syntax elements.
In this chapter, we kept an eye on Linq-to-SQL, which is the implementation of LINQ that works on SQL Server tables using the SQL Server ADO.NET data provider. Linq-to-SQL offers a data model that is representative of the underlying database and creates a number of classes for you through the services of a Visual Studio 2008 tool—the O/R designer.
Linq-to-SQL lets ...
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