LINQ. Gang Luo Xuting Zhao. Introduction. LINQ Architecture. Query Expression. SQL-like: from s in names where s.Length == 5 orderby sselect s.ToUpper(); OO-style: names. Where (s => s.Length==5) . OrderBy (s => s) . Select (s => s.ToUpper());
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
from s in names
where s.Length == 5 orderby sselect s.ToUpper();
names.Where(s => s.Length==5)
.OrderBy(s => s)
.Select(s => s.ToUpper());
You can control not only by Lambda Expression, but also by methods extension
The lambda expression for shaping (n, p) => p will be applied on each matching pairs.
Min, Max, Sum, Average.
only one SQL query will be generated
and sent to database (Similar to Django)
What if you want the intermediate result?
But that is already enough!
Anonymous Object Initializer.