<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:40:19 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-1664] Allow dynamically created Expression&lt;Func&lt;&gt;&gt; to be used in a Mongo Linq query</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1664</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;var filter = FilterBuilder.BuildExpressionFilter&amp;lt;BetPurchase&amp;gt;()&lt;/p&gt;

&lt;p&gt;var query = _storage.AsQueryable()&lt;br/&gt;
                .Where(p =&amp;gt; p.Selections.AsQueryable().Where(filter).Any());&lt;/p&gt;

&lt;p&gt;This won&apos;t work because AsQueryable is not supported. &lt;/p&gt;</description>
                <environment></environment>
        <key id="286276">CSHARP-1664</key>
            <summary>Allow dynamically created Expression&lt;Func&lt;&gt;&gt; to be used in a Mongo Linq query</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="5" iconUrl="https://jira.mongodb.org/images/icons/priorities/trivial.svg">Trivial - P5</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="craig.wilson@mongodb.com">Craig Wilson</assignee>
                                    <reporter username="alex687">Alexandar Aramov</reporter>
                        <labels>
                    </labels>
                <created>Thu, 12 May 2016 12:32:43 +0000</created>
                <updated>Fri, 23 Sep 2016 19:50:24 +0000</updated>
                            <resolved>Tue, 9 Aug 2016 15:48:31 +0000</resolved>
                                                    <fixVersion>2.3</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1351567" author="xgen-internal-githook" created="Tue, 9 Aug 2016 15:50:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;craiggwilson&apos;, u&apos;name&apos;: u&apos;Craig Wilson&apos;, u&apos;email&apos;: u&apos;craiggwilson@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1664&quot; title=&quot;Allow dynamically created Expression&amp;lt;Func&amp;lt;&amp;gt;&amp;gt; to be used in a Mongo Linq query&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1664&quot;&gt;&lt;del&gt;CSHARP-1664&lt;/del&gt;&lt;/a&gt;: cleaning up and adding contributor.&lt;br/&gt;
Branch: v2.4.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/444e1aa1c92c7eafbfc467f846974bccdd520da8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/444e1aa1c92c7eafbfc467f846974bccdd520da8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1351566" author="xgen-internal-githook" created="Tue, 9 Aug 2016 15:50:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;alex687&apos;, u&apos;name&apos;: u&apos;Alexandar Aramov&apos;, u&apos;email&apos;: u&apos;alex.aramov@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1664&quot; title=&quot;Allow dynamically created Expression&amp;lt;Func&amp;lt;&amp;gt;&amp;gt; to be used in a Mongo Linq query&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1664&quot;&gt;&lt;del&gt;CSHARP-1664&lt;/del&gt;&lt;/a&gt; fixing namespace&lt;br/&gt;
Branch: v2.4.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/7017a89762580e4d67245791c67cc11bd5218058&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/7017a89762580e4d67245791c67cc11bd5218058&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1351565" author="xgen-internal-githook" created="Tue, 9 Aug 2016 15:50:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;alex687&apos;, u&apos;name&apos;: u&apos;Alexandar Aramov&apos;, u&apos;email&apos;: u&apos;alex.aramov@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1664&quot; title=&quot;Allow dynamically created Expression&amp;lt;Func&amp;lt;&amp;gt;&amp;gt; to be used in a Mongo Linq query&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1664&quot;&gt;&lt;del&gt;CSHARP-1664&lt;/del&gt;&lt;/a&gt; Adding AsQuerableBinder to  infoBinders,  getting the dynamically created expression , some unit tests&lt;br/&gt;
Branch: v2.4.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/f7cf7fbe1345776c275ca3efa261d748cc877ff4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/f7cf7fbe1345776c275ca3efa261d748cc877ff4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1351558" author="xgen-internal-githook" created="Tue, 9 Aug 2016 15:48:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;craiggwilson&apos;, u&apos;name&apos;: u&apos;Craig Wilson&apos;, u&apos;email&apos;: u&apos;craiggwilson@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1664&quot; title=&quot;Allow dynamically created Expression&amp;lt;Func&amp;lt;&amp;gt;&amp;gt; to be used in a Mongo Linq query&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1664&quot;&gt;&lt;del&gt;CSHARP-1664&lt;/del&gt;&lt;/a&gt;: cleaning up and adding contributor.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/444e1aa1c92c7eafbfc467f846974bccdd520da8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/444e1aa1c92c7eafbfc467f846974bccdd520da8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1351557" author="xgen-internal-githook" created="Tue, 9 Aug 2016 15:48:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;alex687&apos;, u&apos;name&apos;: u&apos;Alexandar Aramov&apos;, u&apos;email&apos;: u&apos;alex.aramov@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1664&quot; title=&quot;Allow dynamically created Expression&amp;lt;Func&amp;lt;&amp;gt;&amp;gt; to be used in a Mongo Linq query&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1664&quot;&gt;&lt;del&gt;CSHARP-1664&lt;/del&gt;&lt;/a&gt; fixing namespace&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/7017a89762580e4d67245791c67cc11bd5218058&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/7017a89762580e4d67245791c67cc11bd5218058&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1351556" author="xgen-internal-githook" created="Tue, 9 Aug 2016 15:48:21 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;alex687&apos;, u&apos;name&apos;: u&apos;Alexandar Aramov&apos;, u&apos;email&apos;: u&apos;alex.aramov@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1664&quot; title=&quot;Allow dynamically created Expression&amp;lt;Func&amp;lt;&amp;gt;&amp;gt; to be used in a Mongo Linq query&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1664&quot;&gt;&lt;del&gt;CSHARP-1664&lt;/del&gt;&lt;/a&gt; Adding AsQuerableBinder to  infoBinders,  getting the dynamically created expression , some unit tests&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/f7cf7fbe1345776c275ca3efa261d748cc877ff4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/f7cf7fbe1345776c275ca3efa261d748cc877ff4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1265110" author="craiggwilson" created="Mon, 16 May 2016 17:20:26 +0000"  >&lt;p&gt;PR: &lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/pull/237&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/pull/237&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1265108" author="craiggwilson" created="Mon, 16 May 2016 17:19:54 +0000"  >&lt;p&gt;Ok, I&apos;ll schedule it in for 2.3.&lt;/p&gt;

&lt;p&gt;Thanks for the PR.&lt;/p&gt;</comment>
                            <comment id="1262944" author="alex687" created="Thu, 12 May 2016 17:41:16 +0000"  >&lt;p&gt;Hi Craig ,&lt;/p&gt;

&lt;p&gt;Basically yes , I can&apos;t pass Expression&amp;lt;Func&amp;lt;T,bool&amp;gt; without  AsQueryable().&lt;/p&gt;

&lt;p&gt;Alex &lt;/p&gt;</comment>
                            <comment id="1262829" author="craiggwilson" created="Thu, 12 May 2016 15:02:42 +0000"  >&lt;p&gt;Hi Alexandar,&lt;/p&gt;

&lt;p&gt;Thanks for your &lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/pull/237&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;pull request&lt;/a&gt;. It looks great.&lt;/p&gt;

&lt;p&gt;My only question is why users would be doing this. This is effectively a no-op (as is obvious from your pull request). Is the scenario here that you can&apos;t pass an Expression&amp;lt;Func&amp;lt;T,bool&amp;gt;&amp;gt; in an embedded context without using AsQueryable()?&lt;/p&gt;

&lt;p&gt;Craig&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hre16n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1189">C# Sprint 40</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>