Important aspects of Query Operators in LINQ?
There are lots of query-patterns which explain how should write query on data by using LINQ. And these patterns are desgined by help of extension methods. And these query patterns are known as Query Operators. LINQ query operators can be categorized into below ways.
(1)Join Operators:-Join, GroupJoin
(2)Projection Operations:-Select
(3)Sorting Operators:-OrderBy, OrderByDescending, ThenBy, ThenByDescending, Reverse
(4)Grouping Operators:-GroupBy, ToLookUp
(5)Filtering Operators:-OfType, Where
(6)Aggregation:-Aggregate, Average, Count, LonCount, Max, Min, Sum
(7)Set Operators:-Distinct,Except,Intersect,Union
(8)Conversions:-AsEnumerable, AsQueryable, Cast, OfType, ToArray, ToDictionary, ToList,ToLookup
(9)Partition Operators:-Skip, SkipWhile, Take, TakeWhile | |