<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:39: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-1472] ToListAsync() for IQueryable</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1472</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;In MongoDB.Driver.2.1.0\lib\net45\MongoDB.Driver.dll I have found the class MongoDB.Driver.Linq.MongoQueryable whih defines extension methods for IQueryable. I&apos;m missing:&lt;/p&gt;

&lt;p&gt;    public static Task&amp;lt;List&amp;lt;TSource&amp;gt;&amp;gt; ToListAsync&amp;lt;TSource&amp;gt;(this IQueryable&amp;lt;TSource&amp;gt; source, CancellationToken cancellationToken = null)&lt;/p&gt;

&lt;p&gt;Although:&lt;br/&gt;
public static Task&amp;lt;TSource&amp;gt; FirstAsync&amp;lt;TSource&amp;gt;(this IQueryable&amp;lt;TSource&amp;gt; source, CancellationToken cancellationToken = null)&lt;br/&gt;
is defined.&lt;/p&gt;

&lt;p&gt;Workaround: Own extension class:&lt;br/&gt;
    public static class MongoQueryableExtension&lt;br/&gt;
    {&lt;br/&gt;
        public static Task&amp;lt;List&amp;lt;T&amp;gt;&amp;gt; ToListAsync&amp;lt;T&amp;gt;(this IQueryable&amp;lt;T&amp;gt; queryable, CancellationToken cancellationToken = default(CancellationToken))&lt;/p&gt;
        {
            var mongoQueryable = queryable as IMongoQueryable&amp;lt;T&amp;gt;;

            if (mongoQueryable == null)
                throw new ArgumentException(&quot;Has to be an instance of IMongoQueryable&quot;, &quot;queryable&quot;);

            return mongoQueryable.ToListAsync(cancellationToken);
        }
&lt;p&gt;    }&lt;/p&gt;</description>
                <environment></environment>
        <key id="238439">CSHARP-1472</key>
            <summary>ToListAsync() for IQueryable</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="-1">Unassigned</assignee>
                                    <reporter username="dan.danneberg">Dan Danneberg</reporter>
                        <labels>
                    </labels>
                <created>Mon, 9 Nov 2015 16:22:09 +0000</created>
                <updated>Wed, 9 Mar 2016 21:24:13 +0000</updated>
                            <resolved>Wed, 9 Mar 2016 21:24:13 +0000</resolved>
                                    <version>2.0.1</version>
                                                    <component>Linq</component>
                                        <votes>1</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1198311" author="craiggwilson" created="Wed, 9 Mar 2016 21:24:13 +0000"  >&lt;p&gt;Hi Dan,&lt;/p&gt;

&lt;p&gt;We have these extension methods defined on IMongoQueryable. We won&apos;t be adding them to the generic IQueryable method.&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|hse98f:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>