<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:36:53 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-457] Strong Typed Query/Update/SortBy/Etc Builders</title>
                <link>https://jira.mongodb.org/browse/CSHARP-457</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;It would be great to reduce the use of &quot;magic strings&quot; when using the query/update builders.  If there could be a new Builder&amp;lt;T&amp;gt; static types (like Query&amp;lt;T&amp;gt; and Update&amp;lt;T&amp;gt;) which would have methods similar to the following signature:&lt;/p&gt;

&lt;p&gt;Query.EQ(Func&amp;lt;T, object&amp;gt; name, BsonValue value)&lt;/p&gt;

&lt;p&gt;It could be used like this:&lt;br/&gt;
Query.EQ&amp;lt;Account&amp;gt;(a =&amp;gt; a.Email, &quot;test@test.com&quot;)&lt;/p&gt;</description>
                <environment></environment>
        <key id="37467">CSHARP-457</key>
            <summary>Strong Typed Query/Update/SortBy/Etc Builders</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="rhoffman">Ryan Hoffman</reporter>
                        <labels>
                    </labels>
                <created>Mon, 30 Apr 2012 17:01:10 +0000</created>
                <updated>Thu, 2 Apr 2015 18:28:05 +0000</updated>
                            <resolved>Tue, 22 May 2012 13:40:01 +0000</resolved>
                                    <version>1.4.2</version>
                                    <fixVersion>1.5</fixVersion>
                                    <component>Feature Request</component>
                                        <votes>4</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="144459" author="sebm" created="Wed, 18 Jul 2012 14:30:46 +0000"  >&lt;p&gt;Thanks Craig, I have created a new issue here (&lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-531&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/CSHARP-531&lt;/a&gt;)&lt;/p&gt;</comment>
                            <comment id="144443" author="craiggwilson" created="Wed, 18 Jul 2012 14:02:21 +0000"  >&lt;p&gt;There is no support for this.  If you&apos;d like to file a different JIRA for this, then feel free.  If you do, please try and include a sample of how you would like this to look (not the implementation, just the api portion).&lt;/p&gt;</comment>
                            <comment id="144426" author="sebm" created="Wed, 18 Jul 2012 13:38:45 +0000"  >&lt;p&gt;Great feature, is there LINQ support for updates to nested arrays where the positional operator is currently used?&lt;/p&gt;

&lt;p&gt;e.g. &lt;/p&gt;

&lt;p&gt;Update.Set(&quot;Entity.$.Field&quot;, &quot;value&quot;)&lt;/p&gt;

&lt;p&gt;It looks like no as this would probably require a second generic type for the nested object being updated.  Is this planned at all?&lt;/p&gt;</comment>
                            <comment id="121853" author="craiggwilson" created="Tue, 22 May 2012 13:40:01 +0000"  >&lt;p&gt;pulled into master.&lt;/p&gt;</comment>
                            <comment id="117286" author="rhoffman" created="Tue, 8 May 2012 15:19:39 +0000"  >&lt;p&gt;Craig, I have taken a look at the tests and I can&apos;t wait for this in the driver &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;.&lt;/p&gt;</comment>
                            <comment id="117239" author="craiggwilson" created="Tue, 8 May 2012 14:05:15 +0000"  >&lt;p&gt;Alex, I&apos;m very interested in your implementation.  I have fully functional code here if you wouldn&apos;t mind taking a look and letting me know what you think, offering suggestions, or letting me know that yours is better (in which case I&apos;d like to see yours so we can use it instead) &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;.  It also incorporates some refactoring underneath of the linq stuff to be reused by the typed query builder and as such supports getting an IMongoQuery directly from a linq expression.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/craiggwilson/mongo-csharp-driver/blob/typedquerybuilder/DriverUnitTests/Builders/TypedQueryBuilderTests.cs&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/craiggwilson/mongo-csharp-driver/blob/typedquerybuilder/DriverUnitTests/Builders/TypedQueryBuilderTests.cs&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="116572" author="optimiz3" created="Sat, 5 May 2012 18:53:23 +0000"  >&lt;p&gt;I&apos;ve got these exact semantics implemented in our private branch, it wouldn&apos;t be hard to issue a pull request.  Do let me know if you would like the code as it will save a lot of copy/small edit/replace time.&lt;/p&gt;
</comment>
                            <comment id="116406" author="craiggwilson" created="Fri, 4 May 2012 17:42:55 +0000"  >&lt;p&gt;We are looking at possibilities to implement this as we also feel that magic strings are bad.  Stay tuned for more information.&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|hrh4cf:</customfieldvalue>

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