<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:37:23 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-632] Linq OrderBy throws when Expression type is object and property type is a value type</title>
                <link>https://jira.mongodb.org/browse/CSHARP-632</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;We were using the .OrderBy extension method with a custom Expression. The Mongo driver seems to strip out the `Convert(...)` that the C# compiler adds (to box value types to reference types). i.e.&lt;/p&gt;

&lt;p&gt;Expression&amp;lt;Func&amp;lt;TModel, DateTime&amp;gt;&amp;gt; sortExpression = m =&amp;gt; m.UploadDate;&lt;br/&gt;
var query = collection.AsQueryable().OrderBy(sortExpression);&lt;br/&gt;
query.ToList(); // &amp;lt;-- fails&lt;/p&gt;

&lt;p&gt;Pull request is following, on Github.&lt;/p&gt;</description>
                <environment></environment>
        <key id="57052">CSHARP-632</key>
            <summary>Linq OrderBy throws when Expression type is object and property type is a value type</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="tkellogg">Tim Kellogg</reporter>
                        <labels>
                    </labels>
                <created>Tue, 20 Nov 2012 18:22:31 +0000</created>
                <updated>Thu, 20 Mar 2014 14:36:04 +0000</updated>
                            <resolved>Mon, 10 Dec 2012 13:46:01 +0000</resolved>
                                    <version>1.6.1</version>
                                    <fixVersion>1.8</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="211444" author="auto" created="Mon, 10 Dec 2012 20:53:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-12-10T16:04:34Z&apos;, u&apos;email&apos;: u&apos;craiggwilson@gmail.com&apos;, u&apos;name&apos;: u&apos;Craig Wilson&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-632&quot; title=&quot;Linq OrderBy throws when Expression type is object and property type is a value type&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-632&quot;&gt;&lt;del&gt;CSHARP-632&lt;/del&gt;&lt;/a&gt;: correct over-generalization of convert expression removal.&lt;br/&gt;
Branch: x2.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/d0818073c0b4f008654981b801c7d0458f4f0e05&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/d0818073c0b4f008654981b801c7d0458f4f0e05&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="211184" author="auto" created="Mon, 10 Dec 2012 16:56:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-12-10T16:04:34Z&apos;, u&apos;email&apos;: u&apos;craiggwilson@gmail.com&apos;, u&apos;name&apos;: u&apos;Craig Wilson&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-632&quot; title=&quot;Linq OrderBy throws when Expression type is object and property type is a value type&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-632&quot;&gt;&lt;del&gt;CSHARP-632&lt;/del&gt;&lt;/a&gt;: correct over-generalization of convert expression removal.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/619fe7f31dc96a5304c9250b4b52de65513adada&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/619fe7f31dc96a5304c9250b4b52de65513adada&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="211020" author="craiggwilson" created="Mon, 10 Dec 2012 13:46:01 +0000"  >&lt;p&gt;In code review.&lt;/p&gt;</comment>
                            <comment id="194957" author="tkellogg" created="Tue, 20 Nov 2012 18:25:32 +0000"  >&lt;p&gt;Pull request is at &lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/pull/140&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/pull/140&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="57478">CSHARP-634</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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|hrkohj:</customfieldvalue>

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