GeekArticles
Database
SQL Server
Database
SQL ServerAn Extensive Examination of LINQ: Extending LINQ - Adding Query Operators
<p>
As discussed in earlier installments of this article series - most notably in <a Introduction to LINQ</a>
and <a Standard Query Operators</a> - one of primary components is its set of <i>standard
query operators</i>. A query operator is a method that operates on a sequence of data and performs some task based on that data, are implemented as
<a methods</a> on types that implement
the <a interface</a>. Some of the standard query operators that
explored throughout the articles in this series include: <code>Count</code>, <code>Average</code>, <code>First</code>, <code>Skip</code>, <code>Take</code>, <code>Where</code>,
and <code>OrderBy</code>, among others.
</p><p>
While these standard query operators provide a great detail of functionality, there may be situations where they fall short. The good news is that quite easy to create
your own query operators. Underneath the covers query operators are just methods that extend types that implement <code>IEnumerable<T></code> and iterate over the
sequence performing some task, such as computing the total number of items in the sequence, computing the average, filtering the results, or ordering them. This article examines
how to extend functionality by creating your own extension methods. Read on to learn more!
<br /><a More ></a></p>
Sponsored Links
Related Topics
Subscribe via RSS
SQL Server
- Naming Database Objects: Part II
- Trace Messages Part V: Trace Cleanup
- Naming Database Objects: Part I
- Multiple-Child Aggregation
- Creating SQL Tables for an Integrating Application Using Dexterity
- SQL Server 2005 Beta 2 Transact-SQL Enhancements
- .NET Rocks! - Brian Larson on SQL Server Reporting Services
- Computing the Trimmed Mean in SQL
- SQL Server 2000 Gains on Oracle
- Separator First Formatting (SFF)
