<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>BUY Sildenafil Citrate ONLINE WITHOUT PRESCRIPTION</title>
	<atom:link href="http://elegantcode.com/2008/04/15/dynamic-linq/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com/2008/04/15/dynamic-linq/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dynamic-linq</link>
	<description></description>
	<lastBuildDate>Tue, 08 May 2012 09:13:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>BUY Sildenafil Citrate ONLINE WITHOUT PRESCRIPTION</title>
		<link>http://elegantcode.com/2008/04/15/dynamic-linq/comment-page-1/#comment-19828</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 16 Apr 2008 14:45:47 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/04/15/dynamic-linq/#comment-19828</guid>
		<description>I just used this for a practical reason yesterday.  I created a custom GridView called QueryableGridView that works with IQueryable&lt;T&gt;s without using the limiting LinqDataSource.  The trick I needed to solve was handling paging and sorting against any IQueryable without having to know any details about it.

The following bit of code, courtesy of Dynamic Linq works like a charm.

int count = query.Count(); // need this to fill the pager.

if(AllowSorting)
sortedQuery = query.OrderBy(SortExpression);  // here&#039;s the bit that dynamic linq handles - it converts the SortExpression string to linq.

if(AllowPaging)
pagedQuery = query.Page(PageIndex, PageSize); // an extension method I wrote combining Skip and Take.

...</description>
		<content:encoded><![CDATA[<p>I just used this for a practical reason yesterday.  I created a custom GridView called QueryableGridView that works with IQueryable&lt;T&gt;s without using the limiting LinqDataSource.  The trick I needed to solve was handling paging and sorting against any IQueryable without having to know any details about it.</p>
<p>The following bit of code, courtesy of Dynamic Linq works like a charm.</p>
<p>int count = query.Count(); // need this to fill the pager.</p>
<p>if(AllowSorting)<br />
sortedQuery = query.OrderBy(SortExpression);  // here&#8217;s the bit that dynamic linq handles &#8211; it converts the SortExpression string to linq.</p>
<p>if(AllowPaging)<br />
pagedQuery = query.Page(PageIndex, PageSize); // an extension method I wrote combining Skip and Take.</p>
<p>&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>BUY Sildenafil Citrate ONLINE WITHOUT PRESCRIPTION</title>
		<link>http://elegantcode.com/2008/04/15/dynamic-linq/comment-page-1/#comment-19808</link>
		<dc:creator>dcarver</dc:creator>
		<pubDate>Wed, 16 Apr 2008 02:16:06 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/04/15/dynamic-linq/#comment-19808</guid>
		<description>Linq is just too cool.</description>
		<content:encoded><![CDATA[<p>Linq is just too cool.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

