<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:35:42 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-63] LINQ Support for All() subquery</title>
                <link>https://jira.mongodb.org/browse/CSHARP-63</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;It would nice if the LINQ Provider would offer support for List&amp;lt;T&amp;gt;.TrueForAll(), Enumerable.All() or both so that something like the sample below would work out of the box:&lt;/p&gt;

&lt;p&gt;class Post &lt;br/&gt;
{ &lt;br/&gt;
  string Title; &lt;br/&gt;
  string Body; &lt;br/&gt;
  List&amp;lt;string&amp;gt; Tags; &lt;br/&gt;
} &lt;/p&gt;

&lt;p&gt;This SearchByTag is supposed to search for all Posts containing ALL the tags.&lt;/p&gt;

&lt;p&gt;public List&amp;lt;Snip&amp;gt; SearchByTag(List&amp;lt;string&amp;gt; Tags, int PageSize, int &lt;br/&gt;
StartPage, int PageCount) &lt;br/&gt;
{ &lt;br/&gt;
        using (var db = ServiceLocator.Get&amp;lt;IMongo&amp;gt;()) &lt;/p&gt;
        { 
                var posts = db.GetCollection&amp;lt;Post&amp;gt;(); 
                List&amp;lt;Post&amp;gt; result; 
                int skip = StartPage*PageSize; 
                int take = PageCount*PageSize; 

                if (Tags != null &amp;amp;&amp;amp; Tags.Count &amp;gt; 0) 
                        result = posts.AsQueryable().Where(x =&amp;gt; Tags.All(x.Tags.Contains)).OrderByDescending(x =&amp;gt; 
x.LastAccess).Skip(skip).Take(take).ToList(); 
                else 
                        result = posts.AsQueryable().OrderByDescending(x =&amp;gt; x.LastAccess).Skip(skip).Take(take).ToList(); 
                return result; 
        } </description>
                <environment></environment>
        <key id="13081">CSHARP-63</key>
            <summary>LINQ Support for All() subquery</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</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="oliverw">Oliver Weichhold</reporter>
                        <labels>
                    </labels>
                <created>Mon, 13 Sep 2010 15:13:22 +0000</created>
                <updated>Sat, 18 Sep 2010 17:30:35 +0000</updated>
                            <resolved>Sat, 18 Sep 2010 17:30:35 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="18341" author="craiggwilson" created="Sat, 18 Sep 2010 17:30:35 +0000"  >&lt;p&gt;I have added this support into my branch &lt;a href=&quot;http://github.com/craiggwilson/mongodb-csharp/tree/1.6_prep&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/craiggwilson/mongodb-csharp/tree/1.6_prep&lt;/a&gt;.  It will get merged at some point into the master.&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|hrh9wv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14405</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>