<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Linq to Amazon implementation fore steps</title><link>http://weblogs.asp.net/fmarguerie/archive/2006/06/28/Linq-to-Amazon-implementation-fore-steps.aspx</link><description>On Monday, I have announced an implementation of Linq for Amazon Web Services , that allows to query for books using the following syntax: var query = from book in new Amazon.BookSearch() where book.Title.Contains("ajax") &amp;amp;&amp;amp; (book.Publisher =</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>LINQ: How To Use LINQ To Query Just About Anything</title><link>http://weblogs.asp.net/fmarguerie/archive/2006/06/28/Linq-to-Amazon-implementation-fore-steps.aspx#3003871</link><pubDate>Mon, 02 Jul 2007 23:10:59 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:3003871</guid><dc:creator>Rob Conery</dc:creator><author>Rob Conery</author><description>&lt;p&gt;LINQ: How To Use LINQ To Query Just About Anything&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=3003871" width="1" height="1"&gt;</description></item><item><title>re: Linq to Amazon implementation fore steps</title><link>http://weblogs.asp.net/fmarguerie/archive/2006/06/28/Linq-to-Amazon-implementation-fore-steps.aspx#455100</link><pubDate>Wed, 28 Jun 2006 23:46:20 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:455100</guid><dc:creator>Fabrice Marguerie</dc:creator><author>Fabrice Marguerie</author><description>&lt;p&gt;In my case, I collect all the criteria regardless of the order, so yes, your query is equivalent to mine. But in fact, I would say that it's up to you. You can do whatever you want in your implementation. As you see in the expression tree, you get the expressions in the order they were formulated, so you can use that as critical information for the processing if you wish.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=455100" width="1" height="1"&gt;</description></item><item><title>re: Linq to Amazon implementation fore steps</title><link>http://weblogs.asp.net/fmarguerie/archive/2006/06/28/Linq-to-Amazon-implementation-fore-steps.aspx#455096</link><pubDate>Wed, 28 Jun 2006 23:33:36 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:455096</guid><dc:creator>Dave</dc:creator><author>Dave</author><description>&lt;p&gt;How can you give hints to LINQ. That is to say in your sample query, you probably wouldn't want it to look at price until the previous conditions are met. Is it strictly by the order you introduce items in the where clause?&lt;/p&gt;
&lt;p&gt;Does LinQ optimize itself? That is to say would this query (different order) perform at the same level as your Query?&lt;/p&gt;
&lt;p&gt;(book.Price &amp;lt;= 25) &amp;amp;&amp;amp;&lt;/p&gt;
&lt;p&gt;(book.Condition == BookCondition.New) &amp;amp;&amp;amp;&lt;/p&gt;
&lt;p&gt;book.Title.Contains(&amp;quot;ajax&amp;quot;) &amp;amp;&amp;amp;&lt;/p&gt;
&lt;p&gt;(book.Publisher == &amp;quot;Manning&amp;quot;)&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=455096" width="1" height="1"&gt;</description></item></channel></rss>