C#.NET: Get Top and Bottom n Rows from DataTable using LINQ
-LINQ, introduced in late 2007 is a way of querying data in arrays, lists, enumerable classes, XML, relational databases and anything built on these.This post explains how to get the top and bottom n number of records from C# DataTable without looping through each row using LINQ queries. A LINQ query operation consists of three actions: obtain the data source or sources, create the query,
0 comments:
Post a Comment
Thank you for your comment