Category: LINQ

LINQ-Image

Grouping Operators LINQ Post 6

LINQ Operators in ASP.NET – Grouping Operators Original Post A query expression can return the results as groups. With the group by operators in the C# language, we separate the results of an expression into groups. This makes some query expressions more effective. GroupBy = Groups the element of a sequence.

Related Atricles Restriction […]

LINQ-Image

Set Operators LINQ Part 14

LINQ Operators in ASP.NET – Set Operators Original Post Set operations are query operations that produces a result set based on the presence or absence of equivalent elements within the same or separate collections. Distinct = Eliminates duplicate elements from a sequence. Except = Enumerates the first sequence, collecting all distinct elements; then enumerates the […]

LINQ-Image

Conversion Operators LINQ Part 3

LINQ Operators in ASP.NET – Conversion Operators Original Post Conversion operators are used primarily for returning different types. They can be used to return to only particular elements from a collection. AsEnumerable = Returns its argument typed as IEnumerable. Cast = Casts the elements of a sequence to a given type. OfType = Filters the […]

LINQ-Image

Element Operators LINQ Part 4

LINQ Operators in ASP.NET – Element Operators Original Post Element operators return a single element from a collection based on your query. DefaultIfEmpty = Supplies a default element for an empty sequence. C an be combined with a grouping join to produce a left outer join.*1 ElementAt = Returns the element at a given index […]

LINQ-Image

Quantifier Operators LINQ Part 12

LINQ Operators in ASP.NET – Quantifier Operators Original Post Quantifier operators return true or false if data matching your query exists in the collection. Any = Checks whether any element of a sequence satisfies a condition. If no predicate function is specified, simply returns true if the source sequence contains any elements. Enumeration of the […]

LINQ-Image

Generation Operators LINQ Part 5

LINQ Operators in ASP.NET – Generation Operators Original Post Generation operators are mostly used for testing, they can be used to generate data. Empty = Returns an empty sequence of a given type. Range = Generates a sequence of integral numbers. Repeat = Generates a sequence by repeating a value a given number of times. […]

LINQ_logo_1

LINQ Part 1 – An Introduction to LINQ

Language Integrated Query (LINQ) is a query translation pipeline integrated into the .NET Framework. Simply put. LINQ is a layer between and application and the data store. It allows you to represent data as objects and query data in your object model. It can be used to express queries using any language that works with […]