<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:43:27 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-2757] Unable to call ToString on Projections</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2757</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;I am trying to perform a query like the one below. Note that p.Date and p.Decimal are of type DateTime and decimal respectively. Calling ToString on the decimal value results in an exception whereas calling ToString on a DateTime value succeeds.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;tt&gt;var query = repository&lt;/tt&gt;&lt;br/&gt;
{{ .GetQueryable()}}&lt;br/&gt;
{{ .Where(p =&amp;gt; p.Id == request.Id)}}&lt;br/&gt;
{{ .Select(p =&amp;gt; new Projection}}&lt;br/&gt;
{{ { }}&lt;br/&gt;
{{ Date = p.Date, }}&lt;br/&gt;
{{ DateAsString = p.Date.ToString(&quot;%d/%m/%Y&quot;),}}&lt;br/&gt;
{{ Decimal = p.Decimal,}}&lt;br/&gt;
{{ DecimalAsString = p.Decimal.ToString(), }}&lt;br/&gt;
{{ });}}&lt;/p&gt;&lt;/blockquote&gt;</description>
                <environment></environment>
        <key id="940971">CSHARP-2757</key>
            <summary>Unable to call ToString on Projections</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="13201">Fixed</resolution>
                                        <assignee username="dmitry.lukyanov@mongodb.com">Dmitry Lukyanov</assignee>
                                    <reporter username="jake.stateresa@gmail.com">Jake Sta Teresa</reporter>
                        <labels>
                    </labels>
                <created>Thu, 26 Sep 2019 06:27:21 +0000</created>
                <updated>Sat, 28 Oct 2023 11:48:36 +0000</updated>
                            <resolved>Tue, 8 Oct 2019 13:31:33 +0000</resolved>
                                    <version>2.9.1</version>
                                    <fixVersion>2.9.3</fixVersion>
                                    <component>Linq</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="2471604" author="xgen-internal-githook" created="Tue, 8 Oct 2019 14:51:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Dmitry Lukyanov&apos;, &apos;username&apos;: &apos;DmitryLukyanov&apos;, &apos;email&apos;: &apos;dmitry.lukyanov@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2757&quot; title=&quot;Unable to call ToString on Projections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2757&quot;&gt;&lt;del&gt;CSHARP-2757&lt;/del&gt;&lt;/a&gt;: Unable to call ToString on Projections.&lt;br/&gt;
Branch: v2.9.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/92ab15992a6393f92dbd7ce802b272f61e47caa7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/92ab15992a6393f92dbd7ce802b272f61e47caa7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2471286" author="xgen-internal-githook" created="Tue, 8 Oct 2019 12:00:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;DmitryLukyanov&apos;, &apos;email&apos;: &apos;dmitry.lukyanov@mongodb.com&apos;, &apos;name&apos;: &apos;Dmitry Lukyanov&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2757&quot; title=&quot;Unable to call ToString on Projections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2757&quot;&gt;&lt;del&gt;CSHARP-2757&lt;/del&gt;&lt;/a&gt;: Unable to call ToString on Projections.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/d99e2340ef2faa495357ea0e95afc52b57b059b1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/d99e2340ef2faa495357ea0e95afc52b57b059b1&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <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|hvh727:</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>