LINQ Quickly: A practical guide to programming Language Integrated Query with C#
LINQ (Language Integrated Query), the new query technology came with the .NET Framework 3.5 and Visual Studio 2008. LINQ-enabled languages like Visual Basic and C# gives you a rich set of query operators that can be applied to various data sources, such as in-memory collections, databases, datasets, and XML.
The book "LINQ Quickly: A practical guide to programming Language Integrated Query with C#" by N Satheesh Kumar from PACKT Publishing provides good introduction on LINQ and its features. This book is for .NET developers who want to find out exactly what LINQ is, what it can do for them, and how to program with LINQ. Assuming that reader have good sound knowledge of XML, ADO.NET,.NET data access and C# book going to introduces the basic concepts of LINQ. The book provides a good introduction and quickstart to the Linq.
To focus on various aspects of LINQ author group the contents in 7 chapters and 2 Appendix. All the examples and code samples are in C#.The main aspects of LINQ covered by book are:
- LINQ to Objects
- LINQ to XML
- LINQ to SQL
- LINQ to DataSets
- LINQ to XSD
Chapter 1 introduce us with the overall features of LINQ, and gives an overview of LINQ Architecture, Integration with SQL and XML, C# 3.0 Language Features with different operators provided by LINQ to operate on objects, XML, relational databases, etc.
Chapter 2 deals with the used of LINQ with query objects in a collection. This feature allows you to access in-memory data structures using LINQ. This chapter also show how read from Strings and Text Files. The length of chapter is very small and there is lack of some more practical examples.
Chapter 3 looks at LINQ to XML. It is a new in-memory XML programming API to work against XML data. LINQ to XML is the new method of creating and manipulating XML data through .NET. This chapter has very detailed explanations about how to use LINQ against XML. Also author give a stress on Writing XML as Text Files and CSV Files, Reading from CSV Files and LINQ to XML Events with a brief discussion on the LINQ to XML events, objects and dictionaries.
Chapter 4 is the longest chapter of the book with more helpful information on the LINQ to SQL. The author has explained in detail how to query database using LINQ, DataContext Methods, Data Manipulation, LINQ to SQL Queries, Stored Procedures, Object Relational Designer (O/R Designer), translating LINQ expressions into equivalent T-SQL, passing it on to the database for execution, and then returning the results back to the calling application.
Chapter 5 deals LINQ to DataSets. An ADO.NET DataSet provides a disconnected data source environment for applications. It can be used with multiple data sources. The DataSet has the flexibility of handling data locally in cache memory where the application resides. This chapter introduces us with some of the common dataset operations and features like Loading Data into DataSets, Querying Datasets, Sequence Operator, DataSet Query Operators, Projection, Join, SequenceEqual, Skip, Distinct etc.
Chapter 6 covers LINQ to XSD which provides a better programming environment with the object models generated from XML schemas called typed XML programming. This chapter focuses more on how to create typed XML, the features supported by typed XML, and how it helps in development. This chapter also takes a look at creating Typed XML using Visual Studio, Customization of XML Objects and Using LINQ to XSD at Command Line.
Chapter 7 is the most important and valuable as this chapter explains various types of operators provided by LINQ and how these operators can be used against various data sources. All operators differ from one another with respect to the time of execution. The discussion has been grouped by types of operators with introduction and code to use it.
In Appendix A Building an ASP.NET Application, we will see how to use LINQ features to make web application development easier. Building a simple ASP.NET application with one page and having a drop-down box, and a grid to show details corresponding to the selection of the drop-down box. The step-by-step approach is used by author with comments and explanations on working of code while dealing with example.
Appendix B is based on LINQ and it accesses an Outlook object, grabbing the details of contact information stored in Outlook.
LINQ Quickly is a beginnerâ€™s book for anyone who wants to know what LINQ is all about. The technical content of the book appeared to be both accurate and thorough, taking the most in-depth look at LINQ capabilities. If you are looking for more in-depth overview and introduction about LINQ this book is for you.
- Title: LINQ Quickly: A practical guide to programming Language Integrated Query with C#
- Authors: N. Satheesh Kumar
- Publisher: Packt Publishing
- Language: English
- Paperback: 250 pages (Index + 7 chapters + 2 Appendix )
- ISBN: 1847192548
- ISBN 13: 978-1-847192-54-7
- Product Dimensions: 191mm x 235mm
- Website: http://www.packtpub.com/linq-quick-starter/book
written by Vijit Patil, July 11, 2008
written by Chetankumar Akarte, July 11, 2008