The collections classes simply needs to implement IEnumerable
, to
enable it for LINQ to query the collections.
Overview
[ 6 ]
The following figure shows the architecture of LINQ, which can query different data
sources using different programming languages:
Objects Relational Data
Data Sources
XML Data
ADO.NET
Other Sources
of Data
LINQ to Datasets LINQ to SQL LINQ to Entities
Language Integrated Query
LINQ to Objects LINQ to XML
.NET languages supporting LINQ
LINQ to Objects Refers to the use of LINQ queries to access in-memory
data structures. We can query any type that supports
IEnumerable(Of T) (Visual Basic) or IEnumerable (C#).
LINQ to SQL LINQ to SQL is used for managing the relational data as objects.
It is part of the ADO.NET family of technologies. LINQ to SQL
translates the Language Integrated Queries in the object model
to SQL and sends them to the database for execution. When the
database returns the result, LINQ to SQL translates them back to
objects that we can work with.
Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25