Documente Academic
Documente Profesional
Documente Cultură
Lambda Expression
Aggregate function
Aggregate function that specifies how two values are combined to form an
intermediate or the final result.
Restriction and Projection operators
• A restriction operator in LINQ specifies the statement should only affect rows that
meet a specified criteria
“Where” standard query operator to restrict operation category like SQL.
• The Projection operator in LINQ retrieves zero or more rows from one or more
database tables.
1. Select
2. SelectMany
select operator performs a projection on the collection to select elements from the
database.
SelectMany operator performs the sequences of values which are based on a transform
function as well as flattens them into a single sequence. (Use multiple from clauses)
Ordering Operator
• A sorting operation allows ordering the elements of a sequence on basis of a
single or more attributes
OrderBy
OrderByDescending
ThenBy
ThenByDescending
Reverse