Linq for c#

Solo disponible en BuenasTareas
  • Páginas : 133 (33185 palabras )
  • Descarga(s) : 0
  • Publicado : 23 de diciembre de 2011
Leer documento completo
Vista previa del texto
Available as a PDF Electronic Book or Print On Demand

LINQ for Visual C# 2008
PAgeS

200

Fabio Claudio Ferracchiati

About firstPress
Apress's firstPress series is your source for understanding cutting-edge technology. Short, highly focused, and written by experts, Apress's firstPress books save you time and effort. They contain the information you could get based on intensiveresearch yourself or if you were to attend a conference every other week—if only you had the time. They cover the concepts and techniques that will keep you ahead of the technology curve. Apress's firstPress books are real books, in your choice of electronic or print-on-demand format, with no rough edges even when the technology itself is still rough. You can't afford to be without them.LINQ for Visual C# 2008
Dear Reader, C # programmers at any level need to learn about LINQ (Language-Integrated Query), Microsoft’s breakthrough technology for simplifying and unifying data access from any data source. With LINQ you can write more elegant and flexible code, not just to access databases and files but also to manipulate data structures and XML. LINQ for Visual C# 2008 is a shortguide to the major features of LINQ. It thoroughly covers LINQ to Objects, LINQ to SQL, LINQ to DataSet, and LINQ to XML. For instance, you’ll learn to      Use the LINQ syntax Use LINQ to Objects to query in-memory objects Integrate LINQ to SQL with existing ADO.NET programs Query XML documents/data using LINQ to XML Integrate LINQ to SQL and LINQ to XML

The book also includesplenty of working examples to demonstrate LINQ in action. There is no better source than this book for getting a fast head start on this technology. Best Regards, Fabio Claudio Ferracchiati

Contents
Chapter 1: LINQ to Objects .........................................................2 Introduction............................................................................................. 2 ASimple C# 3.0 LINQ to Objects Program ........................................... 2 Extension Methods.................................................................................. 4 Lambda Expressions ............................................................................... 6 Expression Trees ..................................................................................... 7Object Initialization Expressions ........................................................... 8 Anonymous Types ................................................................................... 9 Implicitly Typed Local Variables.......................................................... 10 Query Evaluation Time......................................................................... 11 StandardQuery Operators.................................................................... 15
Restriction Operator .................................................................................... 22 Projection Operators.................................................................................... 25 JoinOperators.............................................................................................. 29 Grouping Operator ...................................................................................... 33 Ordering Operators...................................................................................... 38 Aggregate Operators.................................................................................... 43 Partitioning Operators................................................................................. 51 Concatenation Operator............................................................................... 54 Element Operators....................................................................................... 55 Generation Operators .................................................................................. 61 Quantifier...
tracking img