<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>LinqExtender Work Item Rss Feed</title><link>http://www.codeplex.com/LinqExtender/WorkItem/List.aspx</link><description>LinqExtender Work Item Rss Description</description><item><title>Commented Issue: Included Test Examples Do Not Work [8296]</title><link>http://linqextender.codeplex.com/workitem/8296</link><description>This is one of the test cases &amp;#40;ported to run in a console project for quick testing&amp;#41;&amp;#58;&lt;br /&gt;---&lt;br /&gt;            var builder &amp;#61; new StringBuilder&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;            var context &amp;#61; new TextContext&amp;#60;Book&amp;#62;&amp;#40;new StringWriter&amp;#40;builder&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            var query &amp;#61; from book in context&lt;br /&gt;                        select book&amp;#59;&lt;br /&gt;&lt;br /&gt;            Console.WriteLine&amp;#40;query.Count&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;---&lt;br /&gt;This generates an error&amp;#58; &amp;#34;Error&amp;#9;41&amp;#9;Could not find an implementation of the query pattern for source type &amp;#39;LinqExtender.Tests.TextContext&amp;#60;LinqExtender.Tests.Book&amp;#62;&amp;#39;.  &amp;#39;Select&amp;#39; not found.&amp;#34;&lt;br /&gt;&lt;br /&gt;Not sure what you were thinking, but a proper provider implementation is required before this LINQ should work...&amp;#63;&lt;br /&gt;Comments: Forgot all my previous messages.&amp;#10;As I understand now the static extension methods exists in the LinqExtender namespace. And I just forgot to add using in my test class.</description><author>warloki</author><pubDate>Fri, 30 Nov 2012 16:17:36 GMT</pubDate><guid isPermaLink="false">Commented Issue: Included Test Examples Do Not Work [8296] 20121130041736P</guid></item><item><title>Commented Issue: Included Test Examples Do Not Work [8296]</title><link>http://linqextender.codeplex.com/workitem/8296</link><description>This is one of the test cases &amp;#40;ported to run in a console project for quick testing&amp;#41;&amp;#58;&lt;br /&gt;---&lt;br /&gt;            var builder &amp;#61; new StringBuilder&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;            var context &amp;#61; new TextContext&amp;#60;Book&amp;#62;&amp;#40;new StringWriter&amp;#40;builder&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            var query &amp;#61; from book in context&lt;br /&gt;                        select book&amp;#59;&lt;br /&gt;&lt;br /&gt;            Console.WriteLine&amp;#40;query.Count&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;---&lt;br /&gt;This generates an error&amp;#58; &amp;#34;Error&amp;#9;41&amp;#9;Could not find an implementation of the query pattern for source type &amp;#39;LinqExtender.Tests.TextContext&amp;#60;LinqExtender.Tests.Book&amp;#62;&amp;#39;.  &amp;#39;Select&amp;#39; not found.&amp;#34;&lt;br /&gt;&lt;br /&gt;Not sure what you were thinking, but a proper provider implementation is required before this LINQ should work...&amp;#63;&lt;br /&gt;Comments: After a few hours of struggling I finally found an answer.&amp;#10;I&amp;#39;m not so familiar with CLR to explain the behaviour.&amp;#10;Maybe you could help.&amp;#10;The error was disappeared after I changed the namespace of the TextContext to start with &amp;#39;LinqExtender&amp;#39; and do the same with Test class where the context was queried.&amp;#10;&amp;#10;You could reproduce the issue. Just change the namespace of the Test project and containing classes to something different from &amp;#39;LinqExtender.XXX&amp;#39;.</description><author>warloki</author><pubDate>Fri, 30 Nov 2012 16:00:00 GMT</pubDate><guid isPermaLink="false">Commented Issue: Included Test Examples Do Not Work [8296] 20121130040000P</guid></item><item><title>Commented Issue: Included Test Examples Do Not Work [8296]</title><link>http://linqextender.codeplex.com/workitem/8296</link><description>This is one of the test cases &amp;#40;ported to run in a console project for quick testing&amp;#41;&amp;#58;&lt;br /&gt;---&lt;br /&gt;            var builder &amp;#61; new StringBuilder&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;            var context &amp;#61; new TextContext&amp;#60;Book&amp;#62;&amp;#40;new StringWriter&amp;#40;builder&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            var query &amp;#61; from book in context&lt;br /&gt;                        select book&amp;#59;&lt;br /&gt;&lt;br /&gt;            Console.WriteLine&amp;#40;query.Count&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;---&lt;br /&gt;This generates an error&amp;#58; &amp;#34;Error&amp;#9;41&amp;#9;Could not find an implementation of the query pattern for source type &amp;#39;LinqExtender.Tests.TextContext&amp;#60;LinqExtender.Tests.Book&amp;#62;&amp;#39;.  &amp;#39;Select&amp;#39; not found.&amp;#34;&lt;br /&gt;&lt;br /&gt;Not sure what you were thinking, but a proper provider implementation is required before this LINQ should work...&amp;#63;&lt;br /&gt;Comments: Have the same issue. I cannot understand its nature.&amp;#10;I have absolutely identical context classes&amp;#58; TextContext&amp;#60;T&amp;#62; &amp;#58; ExpressionVisitor, IQueryContext&amp;#60;T&amp;#62;&amp;#10;One is from the source code test project, another one created by myself.&amp;#10;In case when building my class I have the same error message.&amp;#10;Looks like my compiler cannot understand how the context could enumerate the items.</description><author>warloki</author><pubDate>Fri, 30 Nov 2012 15:20:00 GMT</pubDate><guid isPermaLink="false">Commented Issue: Included Test Examples Do Not Work [8296] 20121130032000P</guid></item><item><title>Commented Issue: Included Test Examples Do Not Work [8296]</title><link>http://linqextender.codeplex.com/workitem/8296</link><description>This is one of the test cases &amp;#40;ported to run in a console project for quick testing&amp;#41;&amp;#58;&lt;br /&gt;---&lt;br /&gt;            var builder &amp;#61; new StringBuilder&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;            var context &amp;#61; new TextContext&amp;#60;Book&amp;#62;&amp;#40;new StringWriter&amp;#40;builder&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            var query &amp;#61; from book in context&lt;br /&gt;                        select book&amp;#59;&lt;br /&gt;&lt;br /&gt;            Console.WriteLine&amp;#40;query.Count&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;---&lt;br /&gt;This generates an error&amp;#58; &amp;#34;Error&amp;#9;41&amp;#9;Could not find an implementation of the query pattern for source type &amp;#39;LinqExtender.Tests.TextContext&amp;#60;LinqExtender.Tests.Book&amp;#62;&amp;#39;.  &amp;#39;Select&amp;#39; not found.&amp;#34;&lt;br /&gt;&lt;br /&gt;Not sure what you were thinking, but a proper provider implementation is required before this LINQ should work...&amp;#63;&lt;br /&gt;Comments: Accordingly, I created an console project referenced LinqExtender.Tests &amp;#40;Since i will be using the bits from the test project&amp;#41; and LinqExtender project and wrote the following&amp;#58;&amp;#10;&amp;#10;  var builder &amp;#61; new StringBuilder&amp;#40;&amp;#41;&amp;#59;&amp;#10;            var context &amp;#61; new TextContext&amp;#60;Book&amp;#62;&amp;#40;new StringWriter&amp;#40;builder&amp;#41;&amp;#41;&amp;#59;&amp;#10;&amp;#10;            var query &amp;#61; from book in context&amp;#10;                        select book&amp;#59;&amp;#10;&amp;#10;            Console.WriteLine&amp;#40;query.Count&amp;#40;&amp;#41;&amp;#41;&amp;#59;&amp;#10;            Console.WriteLine&amp;#40;builder&amp;#41;&amp;#59;&amp;#10;            Console.ReadLine&amp;#40;&amp;#41;&amp;#59;&amp;#10;&amp;#10;It prints &amp;#58;&amp;#10;0&amp;#10;select &amp;#42; from book&amp;#10;&amp;#10;Here is the link for github project&amp;#58;&amp;#10;http&amp;#58;&amp;#47;&amp;#47;mehfuzh.github.com&amp;#47;LinqExtender&amp;#47;&amp;#10;&amp;#10;&amp;#10;Hope that helps,&amp;#10;</description><author>mehfuzh</author><pubDate>Fri, 17 Dec 2010 12:20:24 GMT</pubDate><guid isPermaLink="false">Commented Issue: Included Test Examples Do Not Work [8296] 20101217122024P</guid></item><item><title>Commented Issue: Included Test Examples Do Not Work [8296]</title><link>http://linqextender.codeplex.com/workitem/8296</link><description>This is one of the test cases &amp;#40;ported to run in a console project for quick testing&amp;#41;&amp;#58;&lt;br /&gt;---&lt;br /&gt;            var builder &amp;#61; new StringBuilder&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;            var context &amp;#61; new TextContext&amp;#60;Book&amp;#62;&amp;#40;new StringWriter&amp;#40;builder&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            var query &amp;#61; from book in context&lt;br /&gt;                        select book&amp;#59;&lt;br /&gt;&lt;br /&gt;            Console.WriteLine&amp;#40;query.Count&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;---&lt;br /&gt;This generates an error&amp;#58; &amp;#34;Error&amp;#9;41&amp;#9;Could not find an implementation of the query pattern for source type &amp;#39;LinqExtender.Tests.TextContext&amp;#60;LinqExtender.Tests.Book&amp;#62;&amp;#39;.  &amp;#39;Select&amp;#39; not found.&amp;#34;&lt;br /&gt;&lt;br /&gt;Not sure what you were thinking, but a proper provider implementation is required before this LINQ should work...&amp;#63;&lt;br /&gt;Comments: Also, if possible please try running the test project directly by using Test Driven .Net within visual studio.</description><author>mehfuzh</author><pubDate>Fri, 17 Dec 2010 12:06:14 GMT</pubDate><guid isPermaLink="false">Commented Issue: Included Test Examples Do Not Work [8296] 20101217120614P</guid></item><item><title>Commented Issue: Included Test Examples Do Not Work [8296]</title><link>http://linqextender.codeplex.com/workitem/8296</link><description>This is one of the test cases &amp;#40;ported to run in a console project for quick testing&amp;#41;&amp;#58;&lt;br /&gt;---&lt;br /&gt;            var builder &amp;#61; new StringBuilder&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;            var context &amp;#61; new TextContext&amp;#60;Book&amp;#62;&amp;#40;new StringWriter&amp;#40;builder&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            var query &amp;#61; from book in context&lt;br /&gt;                        select book&amp;#59;&lt;br /&gt;&lt;br /&gt;            Console.WriteLine&amp;#40;query.Count&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;---&lt;br /&gt;This generates an error&amp;#58; &amp;#34;Error&amp;#9;41&amp;#9;Could not find an implementation of the query pattern for source type &amp;#39;LinqExtender.Tests.TextContext&amp;#60;LinqExtender.Tests.Book&amp;#62;&amp;#39;.  &amp;#39;Select&amp;#39; not found.&amp;#34;&lt;br /&gt;&lt;br /&gt;Not sure what you were thinking, but a proper provider implementation is required before this LINQ should work...&amp;#63;&lt;br /&gt;Comments: Hi James,&amp;#10;Executing the query, it will just populate the builder. Here query.Count&amp;#40;&amp;#41; will be 0, since in the query context i am returning an empty list. The purpose of the test project is to assert if the query is generated as it is expected. But yes it should not throw such exception as well. Therefore, i will take a look. Just to be sure, i guess you are using the version from github &amp;#40;source &amp;#47; download&amp;#41; not the one from source tab.&amp;#10;&amp;#10;Sorry for any inconvenience&amp;#10;</description><author>mehfuzh</author><pubDate>Fri, 17 Dec 2010 12:04:12 GMT</pubDate><guid isPermaLink="false">Commented Issue: Included Test Examples Do Not Work [8296] 20101217120412P</guid></item><item><title>Commented Issue: Included Test Examples Do Not Work [8296]</title><link>http://linqextender.codeplex.com/workitem/8296</link><description>This is one of the test cases &amp;#40;ported to run in a console project for quick testing&amp;#41;&amp;#58;&lt;br /&gt;---&lt;br /&gt;            var builder &amp;#61; new StringBuilder&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;            var context &amp;#61; new TextContext&amp;#60;Book&amp;#62;&amp;#40;new StringWriter&amp;#40;builder&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            var query &amp;#61; from book in context&lt;br /&gt;                        select book&amp;#59;&lt;br /&gt;&lt;br /&gt;            Console.WriteLine&amp;#40;query.Count&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;---&lt;br /&gt;This generates an error&amp;#58; &amp;#34;Error&amp;#9;41&amp;#9;Could not find an implementation of the query pattern for source type &amp;#39;LinqExtender.Tests.TextContext&amp;#60;LinqExtender.Tests.Book&amp;#62;&amp;#39;.  &amp;#39;Select&amp;#39; not found.&amp;#34;&lt;br /&gt;&lt;br /&gt;Not sure what you were thinking, but a proper provider implementation is required before this LINQ should work...&amp;#63;&lt;br /&gt;Comments: Hi James,&amp;#10;Executing the query, it will just populate the builder. Here query.Count&amp;#40;&amp;#41; will be 0, since in the query context i am returning an empty list. The purpose of the test project is to assert if the expected is generated as it is expected. But yes it should not throw such exception as well. Therefore, i will take a look. Just to be sure, i guess you are using the version from github not from the source tab.&amp;#10;&amp;#10;Regards,&amp;#10;Mehfuz&amp;#10;</description><author>mehfuzh</author><pubDate>Fri, 17 Dec 2010 12:01:37 GMT</pubDate><guid isPermaLink="false">Commented Issue: Included Test Examples Do Not Work [8296] 20101217120137P</guid></item><item><title>Edited Issue: Included Test Examples Do Not Work [8296]</title><link>http://linqextender.codeplex.com/workitem/8296</link><description>This is one of the test cases &amp;#40;ported to run in a console project for quick testing&amp;#41;&amp;#58;&lt;br /&gt;---&lt;br /&gt;            var builder &amp;#61; new StringBuilder&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;            var context &amp;#61; new TextContext&amp;#60;Book&amp;#62;&amp;#40;new StringWriter&amp;#40;builder&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            var query &amp;#61; from book in context&lt;br /&gt;                        select book&amp;#59;&lt;br /&gt;&lt;br /&gt;            Console.WriteLine&amp;#40;query.Count&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;---&lt;br /&gt;This generates an error&amp;#58; &amp;#34;Error&amp;#9;41&amp;#9;Could not find an implementation of the query pattern for source type &amp;#39;LinqExtender.Tests.TextContext&amp;#60;LinqExtender.Tests.Book&amp;#62;&amp;#39;.  &amp;#39;Select&amp;#39; not found.&amp;#34;&lt;br /&gt;&lt;br /&gt;Not sure what you were thinking, but a proper provider implementation is required before this LINQ should work...&amp;#63;&lt;br /&gt;</description><author>jamesnw</author><pubDate>Mon, 13 Dec 2010 03:48:55 GMT</pubDate><guid isPermaLink="false">Edited Issue: Included Test Examples Do Not Work [8296] 20101213034855A</guid></item><item><title>Created Issue: Included Test Examples Do Not Work [8296]</title><link>http://linqextender.codeplex.com/workitem/8296</link><description>This is one of the test cases&amp;#58;&lt;br /&gt;---&lt;br /&gt;            var builder &amp;#61; new StringBuilder&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;            var context &amp;#61; new TextContext&amp;#60;Book&amp;#62;&amp;#40;new StringWriter&amp;#40;builder&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            var query &amp;#61; from book in context&lt;br /&gt;                        select book&amp;#59;&lt;br /&gt;&lt;br /&gt;            Console.WriteLine&amp;#40;query.Count&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;---&lt;br /&gt;This generates an error&amp;#58; &amp;#34;Error&amp;#9;41&amp;#9;Could not find an implementation of the query pattern for source type &amp;#39;LinqExtender.Tests.TextContext&amp;#60;LinqExtender.Tests.Book&amp;#62;&amp;#39;.  &amp;#39;Select&amp;#39; not found.&amp;#34;&lt;br /&gt;&lt;br /&gt;Not sure what you were thinking, but a proper provider implementation is required before this LINQ should work...&amp;#63;&lt;br /&gt;</description><author>jamesnw</author><pubDate>Mon, 13 Dec 2010 03:47:48 GMT</pubDate><guid isPermaLink="false">Created Issue: Included Test Examples Do Not Work [8296] 20101213034748A</guid></item><item><title>Closed Issue: Disjunction clauses drop last value [8295]</title><link>http://linqextender.codeplex.com/workitem/8295</link><description>I have a query like this&lt;br /&gt;var result &amp;#61; eQuery.Where&amp;#40;email &amp;#61;&amp;#62; email.subject &amp;#61;&amp;#61; &amp;#34;terminal&amp;#34;&amp;#41;.Where&amp;#40;email &amp;#61;&amp;#62; email.sender &amp;#61;&amp;#61; &amp;#34;X&amp;#34; &amp;#124;&amp;#124; email.sender &amp;#61;&amp;#61; &amp;#34;Y&amp;#34; &amp;#124;&amp;#124; email.sender &amp;#61;&amp;#61; &amp;#34;Z&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;As you can see in the last Where part there are 3 values joined with OR and in my select item I see only the first 2 being passed. &lt;br /&gt;It does not repro if the disjunction Where is the first Where clause. It seems like a bug to me.&lt;br /&gt;Comments: Fixed</description><author>mehfuzh</author><pubDate>Wed, 08 Dec 2010 17:56:44 GMT</pubDate><guid isPermaLink="false">Closed Issue: Disjunction clauses drop last value [8295] 20101208055644P</guid></item><item><title>Commented Issue: Disjunction clauses drop last value [8295]</title><link>http://linqextender.codeplex.com/workitem/8295</link><description>I have a query like this&lt;br /&gt;var result &amp;#61; eQuery.Where&amp;#40;email &amp;#61;&amp;#62; email.subject &amp;#61;&amp;#61; &amp;#34;terminal&amp;#34;&amp;#41;.Where&amp;#40;email &amp;#61;&amp;#62; email.sender &amp;#61;&amp;#61; &amp;#34;X&amp;#34; &amp;#124;&amp;#124; email.sender &amp;#61;&amp;#61; &amp;#34;Y&amp;#34; &amp;#124;&amp;#124; email.sender &amp;#61;&amp;#61; &amp;#34;Z&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;As you can see in the last Where part there are 3 values joined with OR and in my select item I see only the first 2 being passed. &lt;br /&gt;It does not repro if the disjunction Where is the first Where clause. It seems like a bug to me.&lt;br /&gt;Comments: Hi There,&amp;#10;You are right about the issue , it is patched in the most recent commit at &amp;#58; &amp;#10;https&amp;#58;&amp;#47;&amp;#47;github.com&amp;#47;mehfuzh&amp;#47;LinqExtender&amp;#10;&amp;#10;Please check it out.&amp;#10;&amp;#10;Regards,&amp;#10;Mehfuz</description><author>mehfuzh</author><pubDate>Wed, 08 Dec 2010 17:56:04 GMT</pubDate><guid isPermaLink="false">Commented Issue: Disjunction clauses drop last value [8295] 20101208055604P</guid></item><item><title>Commented Issue: Disjunction clauses drop last value [8295]</title><link>http://linqextender.codeplex.com/workitem/8295</link><description>I have a query like this&lt;br /&gt;var result &amp;#61; eQuery.Where&amp;#40;email &amp;#61;&amp;#62; email.subject &amp;#61;&amp;#61; &amp;#34;terminal&amp;#34;&amp;#41;.Where&amp;#40;email &amp;#61;&amp;#62; email.sender &amp;#61;&amp;#61; &amp;#34;X&amp;#34; &amp;#124;&amp;#124; email.sender &amp;#61;&amp;#61; &amp;#34;Y&amp;#34; &amp;#124;&amp;#124; email.sender &amp;#61;&amp;#61; &amp;#34;Z&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;As you can see in the last Where part there are 3 values joined with OR and in my select item I see only the first 2 being passed. &lt;br /&gt;It does not repro if the disjunction Where is the first Where clause. It seems like a bug to me.&lt;br /&gt;Comments: Okay, I have identified a potential solution. In the createquery method, if you already have a node that means you have already processed a Where call earlier. If the current call is another Where you need to make the AND the previous expression tree with the current Where method&amp;#39;s expression tree. That&amp;#39;s what I am trying to do by adding a new parent Node of type AND. So far it worked for the queries I threw at it.&amp;#10;&amp;#10;                TreeNode parentNode &amp;#61; null&amp;#59;&amp;#10;                &amp;#47;&amp;#47; Create a new bucket when Query&amp;#60;T&amp;#62;.Execute is called or it is empty for current type.&amp;#10;                if &amp;#40;&amp;#40;&amp;#33;Buckets.ContainsKey&amp;#40;typeof&amp;#40;T&amp;#41;.FullName&amp;#41;&amp;#41; &amp;#124;&amp;#124; Buckets.Current.IsAlreadyProcessed&amp;#41;&amp;#10;                &amp;#123;&amp;#10;                    Buckets.Current &amp;#61; BucketImpl&amp;#60;T&amp;#62;.NewInstance.Describe&amp;#40;&amp;#41;&amp;#59;&amp;#10;                &amp;#125;&amp;#10;                else if &amp;#40;curentMethodcall.Method.Name &amp;#61;&amp;#61; MethodNames.Where&amp;#41;&amp;#10;                &amp;#123;&amp;#10;                    parentNode &amp;#61; ProcessCurrentNode&amp;#40;null, CompoundOperator.And&amp;#41;&amp;#59;&amp;#10;                &amp;#125;&amp;#10;&amp;#10;                Buckets.Current.IsAsc &amp;#61; curentMethodcall.Method.Name &amp;#61;&amp;#61; MethodNames.Orderbydesc &amp;#63; false &amp;#58; true&amp;#59;&amp;#10;&amp;#10;                if &amp;#40;curentMethodcall.Arguments.Count &amp;#61;&amp;#61; 2&amp;#41;&amp;#10;                &amp;#123;&amp;#10;                    VisitExpression&amp;#60;TS&amp;#62;&amp;#40;curentMethodcall.Arguments&amp;#91;curentMethodcall.Arguments.Count - 1&amp;#93;, 0, parentNode&amp;#41;&amp;#59;&amp;#10;                &amp;#125;&amp;#10;            &amp;#125;</description><author>purujit</author><pubDate>Sat, 13 Nov 2010 01:07:29 GMT</pubDate><guid isPermaLink="false">Commented Issue: Disjunction clauses drop last value [8295] 20101113010729A</guid></item><item><title>Commented Issue: Disjunction clauses drop last value [8295]</title><link>http://linqextender.codeplex.com/workitem/8295</link><description>I have a query like this&lt;br /&gt;var result &amp;#61; eQuery.Where&amp;#40;email &amp;#61;&amp;#62; email.subject &amp;#61;&amp;#61; &amp;#34;terminal&amp;#34;&amp;#41;.Where&amp;#40;email &amp;#61;&amp;#62; email.sender &amp;#61;&amp;#61; &amp;#34;X&amp;#34; &amp;#124;&amp;#124; email.sender &amp;#61;&amp;#61; &amp;#34;Y&amp;#34; &amp;#124;&amp;#124; email.sender &amp;#61;&amp;#61; &amp;#34;Z&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;As you can see in the last Where part there are 3 values joined with OR and in my select item I see only the first 2 being passed. &lt;br /&gt;It does not repro if the disjunction Where is the first Where clause. It seems like a bug to me.&lt;br /&gt;Comments: I forgot to add an example. For the following query, I don&amp;#39;t see a node in the expression tree for email.subject &amp;#61;&amp;#61; &amp;#34;Purujit&amp;#34; part. This seems to repro only in the query method syntax.&amp;#10;&amp;#10;var result &amp;#61; eQuery.&amp;#10;                Where&amp;#40;email &amp;#61;&amp;#62; email.keyword &amp;#61;&amp;#61; &amp;#34;Purujit&amp;#34;&amp;#41;.&amp;#10;                Where&amp;#40;email &amp;#61;&amp;#62; email.sender &amp;#61;&amp;#61; &amp;#34;Purujit&amp;#34; &amp;#124;&amp;#124; email.receivers &amp;#61;&amp;#61; &amp;#34;Purujit&amp;#34; &amp;#124;&amp;#124; email.subject &amp;#61;&amp;#61; &amp;#34;Purujit&amp;#34;&amp;#41;&amp;#59;</description><author>purujit</author><pubDate>Thu, 11 Nov 2010 08:15:55 GMT</pubDate><guid isPermaLink="false">Commented Issue: Disjunction clauses drop last value [8295] 20101111081555A</guid></item><item><title>Commented Issue: Disjunction clauses drop last value [8295]</title><link>http://linqextender.codeplex.com/workitem/8295</link><description>I have a query like this&lt;br /&gt;var result &amp;#61; eQuery.Where&amp;#40;email &amp;#61;&amp;#62; email.subject &amp;#61;&amp;#61; &amp;#34;terminal&amp;#34;&amp;#41;.Where&amp;#40;email &amp;#61;&amp;#62; email.sender &amp;#61;&amp;#61; &amp;#34;X&amp;#34; &amp;#124;&amp;#124; email.sender &amp;#61;&amp;#61; &amp;#34;Y&amp;#34; &amp;#124;&amp;#124; email.sender &amp;#61;&amp;#61; &amp;#34;Z&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;As you can see in the last Where part there are 3 values joined with OR and in my select item I see only the first 2 being passed. &lt;br /&gt;It does not repro if the disjunction Where is the first Where clause. It seems like a bug to me.&lt;br /&gt;Comments: Actually, I think the problem is more general than that. It is basically with multiple predicates in the Where part. I examined the query expression trees generated with different queries and saw that if the where contains multiple predicates the last predicate is dropped along with all the following conditions in the query.&amp;#10;</description><author>purujit</author><pubDate>Thu, 11 Nov 2010 07:58:15 GMT</pubDate><guid isPermaLink="false">Commented Issue: Disjunction clauses drop last value [8295] 20101111075815A</guid></item><item><title>Commented Issue: Disjunction clauses drop last value [8295]</title><link>http://linqextender.codeplex.com/workitem/8295</link><description>I have a query like this&lt;br /&gt;var result &amp;#61; eQuery.Where&amp;#40;email &amp;#61;&amp;#62; email.subject &amp;#61;&amp;#61; &amp;#34;terminal&amp;#34;&amp;#41;.Where&amp;#40;email &amp;#61;&amp;#62; email.sender &amp;#61;&amp;#61; &amp;#34;X&amp;#34; &amp;#124;&amp;#124; email.sender &amp;#61;&amp;#61; &amp;#34;Y&amp;#34; &amp;#124;&amp;#124; email.sender &amp;#61;&amp;#61; &amp;#34;Z&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;As you can see in the last Where part there are 3 values joined with OR and in my select item I see only the first 2 being passed. &lt;br /&gt;It does not repro if the disjunction Where is the first Where clause. It seems like a bug to me.&lt;br /&gt;Comments: Thanks again purujit , will check it out and keep posted for any updates.&amp;#10;--Regards&amp;#10;</description><author>mehfuzh</author><pubDate>Tue, 09 Nov 2010 12:44:06 GMT</pubDate><guid isPermaLink="false">Commented Issue: Disjunction clauses drop last value [8295] 20101109124406P</guid></item><item><title>Created Issue: Disjunction clauses drop last value [8295]</title><link>http://linqextender.codeplex.com/workitem/8295</link><description>I have a query like this&lt;br /&gt;var result &amp;#61; eQuery.Where&amp;#40;email &amp;#61;&amp;#62; email.subject &amp;#61;&amp;#61; &amp;#34;terminal&amp;#34;&amp;#41;.Where&amp;#40;email &amp;#61;&amp;#62; email.sender &amp;#61;&amp;#61; &amp;#34;X&amp;#34; &amp;#124;&amp;#124; email.sender &amp;#61;&amp;#61; &amp;#34;Y&amp;#34; &amp;#124;&amp;#124; email.sender &amp;#61;&amp;#61; &amp;#34;Z&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;As you can see in the last Where part there are 3 values joined with OR and in my select item I see only the first 2 being passed. &lt;br /&gt;It does not repro if the disjunction Where is the first Where clause. It seems like a bug to me.&lt;br /&gt;</description><author>purujit</author><pubDate>Tue, 09 Nov 2010 01:10:46 GMT</pubDate><guid isPermaLink="false">Created Issue: Disjunction clauses drop last value [8295] 20101109011046A</guid></item><item><title>Created Issue: LinqExtender and WCF Data Services (OData) [8294]</title><link>http://linqextender.codeplex.com/WorkItem/View.aspx?WorkItemId=8294</link><description>I have created a Linq-provider with LinqExtender and wanted to expose it as a OData feed. I keep getting a Null Reference exception from the underlying system &amp;#40;WCF&amp;#41; and after alot of debugging it seems like the issue is LinqExtender wrapping the &amp;#34;real&amp;#34; object that should be in the IEnumerable. Its the only difference i can see between the result of a query against my provider an regular Linq for Objects.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve also created a question about this on stackoverflow&amp;#58; http&amp;#58;&amp;#47;&amp;#47;stackoverflow.com&amp;#47;questions&amp;#47;2800229&amp;#47;using-linqextender-to-make-odata-feed-fails&lt;br /&gt;</description><author>burningice</author><pubDate>Mon, 10 May 2010 14:20:52 GMT</pubDate><guid isPermaLink="false">Created Issue: LinqExtender and WCF Data Services (OData) [8294] 20100510022052P</guid></item><item><title>Commented Issue: Multiple calls to Select causes exception [6864]</title><link>http://linqextender.codeplex.com/WorkItem/View.aspx?WorkItemId=6864</link><description>I have written a Linq provider for the Google Base API and it mostly works very well. However, if I do a query like&amp;#58;&lt;br /&gt;&lt;br /&gt;var q &amp;#61; context.GoogleProductItems.Select&amp;#40;p &amp;#61;&amp;#62; new &amp;#123; p.Author, p.Description, p.Price &amp;#125;&amp;#41;.Select&amp;#40;p &amp;#61;&amp;#62; new &amp;#123; p.Author, p.Price &amp;#125;&amp;#41;&lt;br /&gt;&lt;br /&gt;An exception is thrown when I enumerate the query results. The exception detail is&lt;br /&gt;&lt;br /&gt;System.InvalidCastException was unhandled&lt;br /&gt;  Message&amp;#61;&amp;#34;Unable to cast object of type &amp;#39;System.Linq.Expressions.Expression&amp;#96;1&amp;#91;System.Func&amp;#96;2&amp;#91;CustomLinqProviderSample.GoogleProductItem,&amp;#60;&amp;#62;f__AnonymousType0&amp;#96;3&amp;#91;System.String,System.String,System.Decimal&amp;#93;&amp;#93;&amp;#93;&amp;#39; to type &amp;#39;System.Linq.Expressions.Expression&amp;#96;1&amp;#91;System.Func&amp;#96;2&amp;#91;CustomLinqProviderSample.GoogleProductItem,&amp;#60;&amp;#62;f__AnonymousType1&amp;#96;2&amp;#91;System.String,System.Decimal&amp;#93;&amp;#93;&amp;#93;&amp;#39;.&amp;#34;&lt;br /&gt;  Source&amp;#61;&amp;#34;LinqExtender&amp;#34;&lt;br /&gt;  StackTrace&amp;#58;&lt;br /&gt;       at LinqExtender.ProjectedQuery&amp;#96;2.ProcessGenericList&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;Source&amp;#92;Sage 200 Architecture Team&amp;#92;TFS Projects&amp;#92;Mikes Projects&amp;#92;New Linq.Google&amp;#92;Linq Extender&amp;#92;ProjectedQuery.cs&amp;#58;line 49&lt;br /&gt;       at LinqExtender.ProjectedQuery&amp;#96;2.GetEnumerator&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;Source&amp;#92;New Linq.Google&amp;#92;Linq Extender&amp;#92;ProjectedQuery.cs&amp;#58;line 36&lt;br /&gt;       at GoogleTestConsole.Program.Main&amp;#40;String&amp;#91;&amp;#93; args&amp;#41; in C&amp;#58;&amp;#92;Source&amp;#92;New Linq.Google&amp;#92;GoogleTestConcole&amp;#92;Program.cs&amp;#58;line 20&lt;br /&gt;       at System.AppDomain._nExecuteAssembly&amp;#40;Assembly assembly, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;       at System.AppDomain.ExecuteAssembly&amp;#40;String assemblyFile, Evidence assemblySecurity, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly&amp;#40;&amp;#41;&lt;br /&gt;       at System.Threading.ThreadHelper.ThreadStart_Context&amp;#40;Object state&amp;#41;&lt;br /&gt;       at System.Threading.ExecutionContext.Run&amp;#40;ExecutionContext executionContext, ContextCallback callback, Object state&amp;#41;&lt;br /&gt;       at System.Threading.ThreadHelper.ThreadStart&amp;#40;&amp;#41;&lt;br /&gt;  InnerException&amp;#58; &lt;br /&gt;&lt;br /&gt;The problem I think is that QueryExtension.GetUnaryExpressionFromMethodCall is not properly resolving the expression. It ends up returning the lambda expression from the first call to Select. The body of this expression is AnonymousType0 &amp;#60;string, string, decimal&amp;#62; whereas the second type argument for the ProjectedQuery&amp;#60;T,S&amp;#62; is AnonymousType1 &amp;#60;string, decimal&amp;#62;&lt;br /&gt;Comments: ** Comment from web user: mehfuzh ** &lt;p&gt;Hi Sorry for being late, &lt;br /&gt;I will try it and come back to you in a day or two.&lt;/p&gt;</description><author>mehfuzh</author><pubDate>Thu, 11 Mar 2010 19:59:39 GMT</pubDate><guid isPermaLink="false">Commented Issue: Multiple calls to Select causes exception [6864] 20100311075939P</guid></item><item><title>Commented Issue: Multiple calls to Select causes exception [6864]</title><link>http://linqextender.codeplex.com/WorkItem/View.aspx?WorkItemId=6864</link><description>I have written a Linq provider for the Google Base API and it mostly works very well. However, if I do a query like&amp;#58;&lt;br /&gt;&lt;br /&gt;var q &amp;#61; context.GoogleProductItems.Select&amp;#40;p &amp;#61;&amp;#62; new &amp;#123; p.Author, p.Description, p.Price &amp;#125;&amp;#41;.Select&amp;#40;p &amp;#61;&amp;#62; new &amp;#123; p.Author, p.Price &amp;#125;&amp;#41;&lt;br /&gt;&lt;br /&gt;An exception is thrown when I enumerate the query results. The exception detail is&lt;br /&gt;&lt;br /&gt;System.InvalidCastException was unhandled&lt;br /&gt;  Message&amp;#61;&amp;#34;Unable to cast object of type &amp;#39;System.Linq.Expressions.Expression&amp;#96;1&amp;#91;System.Func&amp;#96;2&amp;#91;CustomLinqProviderSample.GoogleProductItem,&amp;#60;&amp;#62;f__AnonymousType0&amp;#96;3&amp;#91;System.String,System.String,System.Decimal&amp;#93;&amp;#93;&amp;#93;&amp;#39; to type &amp;#39;System.Linq.Expressions.Expression&amp;#96;1&amp;#91;System.Func&amp;#96;2&amp;#91;CustomLinqProviderSample.GoogleProductItem,&amp;#60;&amp;#62;f__AnonymousType1&amp;#96;2&amp;#91;System.String,System.Decimal&amp;#93;&amp;#93;&amp;#93;&amp;#39;.&amp;#34;&lt;br /&gt;  Source&amp;#61;&amp;#34;LinqExtender&amp;#34;&lt;br /&gt;  StackTrace&amp;#58;&lt;br /&gt;       at LinqExtender.ProjectedQuery&amp;#96;2.ProcessGenericList&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;Source&amp;#92;Sage 200 Architecture Team&amp;#92;TFS Projects&amp;#92;Mikes Projects&amp;#92;New Linq.Google&amp;#92;Linq Extender&amp;#92;ProjectedQuery.cs&amp;#58;line 49&lt;br /&gt;       at LinqExtender.ProjectedQuery&amp;#96;2.GetEnumerator&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;Source&amp;#92;New Linq.Google&amp;#92;Linq Extender&amp;#92;ProjectedQuery.cs&amp;#58;line 36&lt;br /&gt;       at GoogleTestConsole.Program.Main&amp;#40;String&amp;#91;&amp;#93; args&amp;#41; in C&amp;#58;&amp;#92;Source&amp;#92;New Linq.Google&amp;#92;GoogleTestConcole&amp;#92;Program.cs&amp;#58;line 20&lt;br /&gt;       at System.AppDomain._nExecuteAssembly&amp;#40;Assembly assembly, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;       at System.AppDomain.ExecuteAssembly&amp;#40;String assemblyFile, Evidence assemblySecurity, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly&amp;#40;&amp;#41;&lt;br /&gt;       at System.Threading.ThreadHelper.ThreadStart_Context&amp;#40;Object state&amp;#41;&lt;br /&gt;       at System.Threading.ExecutionContext.Run&amp;#40;ExecutionContext executionContext, ContextCallback callback, Object state&amp;#41;&lt;br /&gt;       at System.Threading.ThreadHelper.ThreadStart&amp;#40;&amp;#41;&lt;br /&gt;  InnerException&amp;#58; &lt;br /&gt;&lt;br /&gt;The problem I think is that QueryExtension.GetUnaryExpressionFromMethodCall is not properly resolving the expression. It ends up returning the lambda expression from the first call to Select. The body of this expression is AnonymousType0 &amp;#60;string, string, decimal&amp;#62; whereas the second type argument for the ProjectedQuery&amp;#60;T,S&amp;#62; is AnonymousType1 &amp;#60;string, decimal&amp;#62;&lt;br /&gt;Comments: ** Comment from web user: theblacklabrador ** &lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;Is there any progress on this&amp;#63; It might seem obscure, but it&amp;#39;s actually a critical bug for my project&amp;#33;&lt;/p&gt;&lt;p&gt;Any updates welcome&amp;#33;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;</description><author>theblacklabrador</author><pubDate>Thu, 11 Mar 2010 14:31:14 GMT</pubDate><guid isPermaLink="false">Commented Issue: Multiple calls to Select causes exception [6864] 20100311023114P</guid></item><item><title>Commented Issue: Multiple calls to Select causes exception [6864]</title><link>http://linqextender.codeplex.com/WorkItem/View.aspx?WorkItemId=6864</link><description>I have written a Linq provider for the Google Base API and it mostly works very well. However, if I do a query like&amp;#58;&lt;br /&gt;&lt;br /&gt;var q &amp;#61; context.GoogleProductItems.Select&amp;#40;p &amp;#61;&amp;#62; new &amp;#123; p.Author, p.Description, p.Price &amp;#125;&amp;#41;.Select&amp;#40;p &amp;#61;&amp;#62; new &amp;#123; p.Author, p.Price &amp;#125;&amp;#41;&lt;br /&gt;&lt;br /&gt;An exception is thrown when I enumerate the query results. The exception detail is&lt;br /&gt;&lt;br /&gt;System.InvalidCastException was unhandled&lt;br /&gt;  Message&amp;#61;&amp;#34;Unable to cast object of type &amp;#39;System.Linq.Expressions.Expression&amp;#96;1&amp;#91;System.Func&amp;#96;2&amp;#91;CustomLinqProviderSample.GoogleProductItem,&amp;#60;&amp;#62;f__AnonymousType0&amp;#96;3&amp;#91;System.String,System.String,System.Decimal&amp;#93;&amp;#93;&amp;#93;&amp;#39; to type &amp;#39;System.Linq.Expressions.Expression&amp;#96;1&amp;#91;System.Func&amp;#96;2&amp;#91;CustomLinqProviderSample.GoogleProductItem,&amp;#60;&amp;#62;f__AnonymousType1&amp;#96;2&amp;#91;System.String,System.Decimal&amp;#93;&amp;#93;&amp;#93;&amp;#39;.&amp;#34;&lt;br /&gt;  Source&amp;#61;&amp;#34;LinqExtender&amp;#34;&lt;br /&gt;  StackTrace&amp;#58;&lt;br /&gt;       at LinqExtender.ProjectedQuery&amp;#96;2.ProcessGenericList&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;Source&amp;#92;Sage 200 Architecture Team&amp;#92;TFS Projects&amp;#92;Mikes Projects&amp;#92;New Linq.Google&amp;#92;Linq Extender&amp;#92;ProjectedQuery.cs&amp;#58;line 49&lt;br /&gt;       at LinqExtender.ProjectedQuery&amp;#96;2.GetEnumerator&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;Source&amp;#92;New Linq.Google&amp;#92;Linq Extender&amp;#92;ProjectedQuery.cs&amp;#58;line 36&lt;br /&gt;       at GoogleTestConsole.Program.Main&amp;#40;String&amp;#91;&amp;#93; args&amp;#41; in C&amp;#58;&amp;#92;Source&amp;#92;New Linq.Google&amp;#92;GoogleTestConcole&amp;#92;Program.cs&amp;#58;line 20&lt;br /&gt;       at System.AppDomain._nExecuteAssembly&amp;#40;Assembly assembly, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;       at System.AppDomain.ExecuteAssembly&amp;#40;String assemblyFile, Evidence assemblySecurity, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly&amp;#40;&amp;#41;&lt;br /&gt;       at System.Threading.ThreadHelper.ThreadStart_Context&amp;#40;Object state&amp;#41;&lt;br /&gt;       at System.Threading.ExecutionContext.Run&amp;#40;ExecutionContext executionContext, ContextCallback callback, Object state&amp;#41;&lt;br /&gt;       at System.Threading.ThreadHelper.ThreadStart&amp;#40;&amp;#41;&lt;br /&gt;  InnerException&amp;#58; &lt;br /&gt;&lt;br /&gt;The problem I think is that QueryExtension.GetUnaryExpressionFromMethodCall is not properly resolving the expression. It ends up returning the lambda expression from the first call to Select. The body of this expression is AnonymousType0 &amp;#60;string, string, decimal&amp;#62; whereas the second type argument for the ProjectedQuery&amp;#60;T,S&amp;#62; is AnonymousType1 &amp;#60;string, decimal&amp;#62;&lt;br /&gt;Comments: ** Comment from web user: mehfuzh ** &lt;p&gt;Good catch, will fix it. Actually creating a new version. So wait till end of this week&amp;#47;early next week.&lt;/p&gt;</description><author>mehfuzh</author><pubDate>Wed, 06 Jan 2010 18:40:52 GMT</pubDate><guid isPermaLink="false">Commented Issue: Multiple calls to Select causes exception [6864] 20100106064052P</guid></item></channel></rss>