Power of LINQ

  • View
    3.755

  • Download
    2

Embed Size (px)

DESCRIPTION

www.devclub.eu

Text of Power of LINQ

  • 1. Power of LINQ Betgenius

2. LINQLanguageIntegratedQuery , .NET 3. ? 4. ? = = / / = / traversing 5. 99.9% API ** 6. ? LINQ impedance mismatch 7. User 8. ! 9. -- Erik Mejer Haskell, Mondrian, X#, C, C #, Visual Basic. LINQ, Volta, Rx Head of Cloud Programmibility Team LINQ 2007... ! (.NET 3.5) Out of the box Linq2Objects, Linq2SQL, Linq2XML 10. LINQ API = + + 11. - VAR 12. 13. 14. 15. 16. 17. 18. 19. !? 20. Map int[] foreach int.ToString() return string[] 21. Map 22. Map 23. Map 24. Map 25. LINQ 2 Objects IEnumerable 50+ (overloads) 26. Select (Map) 27. Where (Filter) 28. 29. 30. Join 31. , , Select SelectMany Min Max SumCount Average Aggregate CastToList Join Reverse GroupByIntersect Join Where First Last AnyExcept OrderBySkip TakeSkipWhile FirstOrDefault SingleUnion Zip Contains DistinctEmpty Repeat 32. 33. ? :select, where, orderby ascending/descending,group by ... into ...join on equals let 34. let 35. LINQ2Anything ? Where - u => u.Sex = F ? LINQ2Objects = IEnumerable extensions+ Func s LINQ2Anything = IQueryable extensions + Expressions 36. Select SelectMany Min Max SumCount Average Aggregate CastToList Join Reverse GroupByIntersect Join Where First Last AnyExcept OrderBySkip TakeSkipWhile FirstOrDefault SingleUnion Zip Contains DistinctEmpty Repeat 37. LINQ2Anything LINQ2Anything = IQueryable extenstions + Expressions Expressions = . IQueryable + IQueryProvider API 38. Func 39. Expression 40. Expression / Func 41. Expression Tree 42. LINQ Providers LINQ 2 Amazonhttp://weblogs.asp.net/fmarguerie/archive/2006/06/26/Introducing-Linq-to-Amazon.aspx 43. LINQ Providers LINQ 2 Active Directoryhttp://linqtoad.codeplex.com/ 44. LINQ Providers LINQ 2 Flickr Athenahttp://linqflickr.codeplex.com/ 45. LINQ Providers LINQ 2 Twitterhttp://linqtotwitter.codeplex.com/ 46. Java Google Collections / Guavahttp://code.google.com/p/guava-libraries/ 47. Java Quaerehttp://quaere.codehaus.org/ 48. PHP PHPLinqhttp://phplinq.codeplex.com 49. Javascript jLinqhttp://hugoware.net/Projects/jLinq 50. LINQ @ MSDNhttp://msdn.microsoft.com/en-us/library/bb397926.aspx 101 LINQ Sampleshttp://code.msdn.microsoft.com/101-LINQ-Samples-3fb9811b Google/Bing/Blogs 51. yuri.mulenko@gmail.com