Download presentation
Presentation is loading. Please wait.
Published byMelanie Kearney Modified over 10 years ago
1
LINQ Stefan Flöring Department für Informatik Carl von Ossietzky Universität Oldenburg
2
2
3
.NET Language Integrated Query 3 LINQ Language Integrate Query LINQ to Objects LINQ to SQL LINQ to XML C# 3.0VB 9.0Weitere (F# …) Relation al Objekte XML
4
4 Demo
5
5 Zusammenfassung from c in db.Customers where c.City == London Select c.CompanyName from c in db.Customers where c.City == London Select c.CompanyName Anwendung LINQ to SQL SQLServer Enumerate SQL Query Oder SProc Tupel SELECT CompanyName FROM Customer WHERE City = London SELECT CompanyName FROM Customer WHERE City = London db.Customers.Add(d); c2.City = Aurich; db.Customers.Add(d); c2.City = Aurich; SubmitChanges() DML INSERT INTO Customer… UPDATE Customer… INSERT INTO Customer… UPDATE Customer…
6
using System.Concurrency; … for (int i = 0; i < 100; i++) { a[i] = a[i]*a[i]; } Parallel.For(0, 100, delegate(int i) { a[i] = a[i]*a[i]; }); … var query = (from c in db.Customers select c).AsParallel(); 6 Parallel FX und Parallel LINQ
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.