Download presentation
Presentation is loading. Please wait.
1
INFO 344 Web Tools And Development
CK Wang University of Washington Spring 2014
2
My favorite part of C# Open VS 2013, Console Project
3
What is LINQ? Why use it? LINQ (Lanugage-Integrated Query)
Run SQL queries in C# data/objects Awesome for manipulating data
4
New Data Type Tuple <1,2,3,…> Store n objects in 1 object
Anonymous class for n-properties, any type Super useful in LINQ
5
Basics Similar to SQL Select, Where, GroupBy, OrderBy
Part 2 = how do I output in 1 line? Hint: Console.WriteLine(… linq …);
6
LINQ SelectMany = flattens the collection
Take/Skip => partition operators ThenBy => order by, then by, … Ex: order by date, then by name
7
Others Other standard SQL stuff Count, Sum, Min, Max, Average
Union, Intersect, Distinct
8
Reading http://msdn.microsoft.com/en-us/library/bb397926.aspx
9
Questions?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.