Download presentation
Presentation is loading. Please wait.
Published byBrandi Alworth Modified over 9 years ago
1
Current Popular IT I Pertemuan 6 Matakuliah: T0403/Current Popular IT I Tahun: 2008
2
Learning Outcomes Learner can use simple query with LINQ using from, where and select Learner can do filtering with LINQ Learner can join, grouping, sorting and making distinct data with LINQ Learner can use LinqDataSource Learner can update, insert and delete data with LINQ Bina Nusantara Copyright © Surya Sujarwo 2008
3
Material Outline Setting Up the LINQ Examples LINQing with From, Where, and Select Filtering with an Eye on Strings Filtering Based on Numbers Thoroughly Aggregating Data Grouping, Sorting, and Making Distinct Using LINQ to Create and Query XML LinqDataSource Updating data with LINQ query Inserting data with the DataContext Bina Nusantara Copyright © Surya Sujarwo 2008
4
Setting Up the LINQ Examples Creating DataContext object – Add Northwind database to App_Data folder – Add LINQ To SQL Classes and name it NW – From Database Explorer drag Categories, Order Details, Products, and Suppliers tables and drop them in the editor Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
5
LINQing with From, Where, and Select Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
6
LINQing with From, Where, and Select (Continue…) Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
7
Filtering with an Eye on Strings Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
8
Filtering Based on Numbers Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
9
Thoroughly Aggregating Data Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
10
Thoroughly Aggregating Data (Continue…) Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
11
Thoroughly Aggregating Data (Continue…) Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
12
Thoroughly Aggregating Data (Continue…) Stepping with skip and take Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
13
Grouping, Sorting, and Making Distinct Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
14
Grouping, Sorting, and Making Distinct (Continue…) Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
15
Using LINQ to Create and Query XML Bina Nusantara
16
Using LINQ to Create and Query XML (Continue…) Bina Nusantara
17
Using LINQ to Create and Query XML (Continue…) Bina Nusantara
18
LinqDataSource Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
19
LinqDataSource (Continue…) Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
20
LinqDataSource (Continue…) Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
21
LinqDataSource (Continue…) Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
22
LinqDataSource (Continue…) Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
23
LinqDataSource (Continue…) Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
24
LinqDataSource (Continue…) Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
25
Updating data with LINQ query Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
26
Updating data with LINQ query (Continue…) Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
27
Inserting data with the DataContext Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
28
Inserting data with the DataContext (Continue…) Bina Nusantara References: ASP.NET 3.5 For DUMMIES(Ken Cox, 2008)
29
That’s All Thank You for the Attention Bina Nusantara
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.