Chaining LINQ Queries

February 12, 2008 14:24 by admin

CodeThinked has an extension method for applying Skip() and Take() to the same query:

	public IQueryable<T> SkipAndTake<T> (this IQueryable<T> query, int skip, int take)
	{
		return query.Skip(skip).Take(take);
	}

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

January 6. 2009 21:13