Tech Tutorials Database
GeekArticles Database SQL Server
 

An Extensive Examination of LINQ: Extending LINQ - Adding Query Operators

 
Author: 4guysfromrolla.com
Category: SQL Server
Comments (0)

<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&lt;T&gt;</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 &gt;</a></p>

Read More...




Sponsored Links




Read Next: Search Engine Optimization Enhancements in ASP.NET 4



 

 

Comments



Post Your Comment:

Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe