<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:40:07 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-1606] Error using Select function</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1606</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Attached we have a Model.cs with a basic example and a Service class where I centralized all my database connections and functions.&lt;/p&gt;

&lt;p&gt;In the Service class I&apos;m trying to get less fields from my collection using &quot;Select&quot; function, supposing that my collection have three fields (as we can see in the Model.cs).&lt;/p&gt;

&lt;p&gt;When the code execute the lines between 20-24, we get the following error: &quot;Additional information: Element &apos;Id&apos; does not match any field or property of class MongoTestClass&quot;.&lt;/p&gt;

&lt;p&gt;But, if I remove the lines (20-24), we will get everything working fine.&lt;/p&gt;
</description>
                <environment>Development environment: Windows 10, Visual Studio 2013 Update 5&lt;br/&gt;
Production environment: Windows Server 2012 R2</environment>
        <key id="273212">CSHARP-1606</key>
            <summary>Error using Select function</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="eddynaka">Eddy Nakamura</reporter>
                        <labels>
                            <label>question</label>
                    </labels>
                <created>Thu, 17 Mar 2016 11:20:45 +0000</created>
                <updated>Fri, 5 Apr 2019 13:59:09 +0000</updated>
                            <resolved>Tue, 5 Apr 2016 00:19:15 +0000</resolved>
                                    <version>2.2.3</version>
                                                    <component>Linq</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1215919" author="eddynaka" created="Fri, 25 Mar 2016 22:04:15 +0000"  >&lt;p&gt;Hi Craig,&lt;/p&gt;

&lt;p&gt;just attached a full project which can insert, but, when i Select the Id field, i get the error I told.&lt;/p&gt;

&lt;p&gt;Can you try?&lt;/p&gt;

&lt;p&gt;Thanks.&lt;br/&gt;
Eddy&lt;/p&gt;</comment>
                            <comment id="1214338" author="craiggwilson" created="Thu, 24 Mar 2016 19:53:30 +0000"  >&lt;p&gt;Hi Eddy,&lt;/p&gt;

&lt;p&gt;I&apos;ve attempted to reproduce this but failed. Would you mind providing a minimal console application (program.cs) that I can just run to see this fail?&lt;/p&gt;

&lt;p&gt;Craig&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="262790">CSHARP-1555</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="115133" name="MongoDbTest.zip" size="1980933" author="eddynaka" created="Fri, 25 Mar 2016 22:03:34 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></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|hsjijb:</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>