Documente Academic
Documente Profesional
Documente Cultură
The data and business layer uses two features: Windows Workflow Foundation (WF) and LINQ
The types of LINQ:
Introducing LINQ LINQ to Objects
LINQ to XML(XLINQ)
LINQ to DataSet
LINQ to SQL (DLINQ)
Understand LINQ to SQL features: LINQ to Entities
LINQ - Language Integrated Query - is
a set of C# 3.0 language and .NET 3.5
framework features.
LINQ is used to writing structured Managing relational
queries over local object collections and data as objects without
losing the ability to
remote data sources. query
With LINQ, you can query any collection
that implements IEnumerable<>,
including tables in a database.
Introducing LINQ to SQL
LINQ to SQL makes the task of writing a data access layer easier.
Object Relational Mapping Framework
You design the database that the application will use.
Then you use the Visual Studio 2008 Object/Relational Designer
(sqlmetal.exe in LINQ Preview) to generate a class that represents
the database with an appropriate object model.
LINQ to SQL is that it can generate objects known as projections
that contain only the fields you want to receive from a specific
query, not the entire row.
LINQ to SQL selects only the required fields and creates objects
that contain only the selected fields.
Introducing LINQ to SQL
Introducing LINQ to SQL
Building the Data Access Layer
The first step to using LINQ to SQL is to build a
DataContext.