<?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>Comments on: Conditional Where in LINQ</title>
	<atom:link href="http://lionsden.co.il/codeden/?feed=rss2&#038;p=107" rel="self" type="application/rss+xml" />
	<link>http://lionsden.co.il/codeden/?p=107</link>
	<description>.NET and JavaScript Examples, Solutions, Tips and Tricks</description>
	<lastBuildDate>Wed, 05 Sep 2012 15:35:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Magdalene Mehrhoff</title>
		<link>http://lionsden.co.il/codeden/?p=107&#038;cpage=1#comment-359</link>
		<dc:creator>Magdalene Mehrhoff</dc:creator>
		<pubDate>Sat, 07 May 2011 06:31:06 +0000</pubDate>
		<guid isPermaLink="false">http://lionsden.co.il/codeden/?p=107#comment-359</guid>
		<description>at last an simple to comprehend course an additional code samples could be very good though.</description>
		<content:encoded><![CDATA[<p>at last an simple to comprehend course an additional code samples could be very good though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://lionsden.co.il/codeden/?p=107&#038;cpage=1#comment-96</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 13 Oct 2009 19:52:10 +0000</pubDate>
		<guid isPermaLink="false">http://lionsden.co.il/codeden/?p=107#comment-96</guid>
		<description>Another approach:

selected  = from b in new ResourceEntryTable().ResourceEntries
where (string.IsNullOrEmpty(txtCategory.Value) &#124;&#124; b.PartitionKey.Equals(txtCategory.Value))
where (string.IsNullOrEmpty(txtSubcategory.Value) &#124;&#124; b.subCategory.Equals(txtSubcategory.Value)) where (string.IsNullOrEmpty(txtCity.Value) &#124;&#124; b.city.Equals(txtCity.Value))
select b;

Tough to squeeze into the comment box.  But point is to use a &#124;&#124; on the where statement to negate the statement if there is no value.  Also nice with Azure, no need to pull back a full data set with data services.</description>
		<content:encoded><![CDATA[<p>Another approach:</p>
<p>selected  = from b in new ResourceEntryTable().ResourceEntries<br />
where (string.IsNullOrEmpty(txtCategory.Value) || b.PartitionKey.Equals(txtCategory.Value))<br />
where (string.IsNullOrEmpty(txtSubcategory.Value) || b.subCategory.Equals(txtSubcategory.Value)) where (string.IsNullOrEmpty(txtCity.Value) || b.city.Equals(txtCity.Value))<br />
select b;</p>
<p>Tough to squeeze into the comment box.  But point is to use a || on the where statement to negate the statement if there is no value.  Also nice with Azure, no need to pull back a full data set with data services.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
