<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:37:20 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-611] Support for Enumerable.Any in LINQ queries for StringSerializer like List&lt;string&gt; Properties</title>
                <link>https://jira.mongodb.org/browse/CSHARP-611</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;In OData Any Queries for IList&amp;lt;string&amp;gt; properties like ?$filter=Links/any(x: x eq &apos;/movies/&apos;) don&apos;t work and it gives &quot;Any is only support for items that serialize into documents. The current serializer is StringSerializer and must implement IBsonDocumentSerializer for participation in Any queries.&quot; error.&lt;/p&gt;

&lt;p&gt;That would be good to add support like these queries or x=&amp;gt;x.Links.Any(l=&amp;gt;l.StartsWith(&quot;/mov&quot;))&lt;/p&gt;</description>
                <environment></environment>
        <key id="54021">CSHARP-611</key>
            <summary>Support for Enumerable.Any in LINQ queries for StringSerializer like List&lt;string&gt; Properties</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="craig.wilson@mongodb.com">Craig Wilson</assignee>
                                    <reporter username="hyurtseven">Huseyin Yurtseven</reporter>
                        <labels>
                    </labels>
                <created>Tue, 23 Oct 2012 08:01:10 +0000</created>
                <updated>Fri, 27 May 2022 01:36:20 +0000</updated>
                            <resolved>Fri, 24 Apr 2015 02:19:47 +0000</resolved>
                                    <version>1.6.1</version>
                                    <fixVersion>2.1</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="896908" author="craiggwilson" created="Fri, 24 Apr 2015 02:19:39 +0000"  >&lt;p&gt;This was fixed with &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-601&quot; title=&quot;Linq to Aggregation Framework&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-601&quot;&gt;&lt;del&gt;CSHARP-601&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="178171" author="craiggwilson" created="Tue, 23 Oct 2012 15:17:17 +0000"  >&lt;p&gt;If you see when we implemented this in &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-413&quot; title=&quot;Add support for Enumerable.Any in LINQ queries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-413&quot;&gt;&lt;del&gt;CSHARP-413&lt;/del&gt;&lt;/a&gt;, we attempted to get this in.  However, it appears as though the server does not support arrays of primitives for $elemMatch, and therefore, we don&apos;t either.  I&apos;ve attached some links to server tickets that indicate this isn&apos;t yet fully supported.&lt;/p&gt;</comment>
                            <comment id="178141" author="hyurtseven" created="Tue, 23 Oct 2012 14:50:11 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Thanks for you quick reply.&lt;/p&gt;

&lt;p&gt;1) We use latest 1.6 version as Driver&lt;/p&gt;

&lt;p&gt;2) We use System.Web.Http.OData as Odata Provider and ASP.NET MVC Web Api with Queryable attribute &lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Queryable(EnsureStableOrdering = false, HandleNullPropagation = HandleNullPropagationOption.False, ResultLimit = 100)&amp;#93;&lt;/span&gt;&lt;br/&gt;
public IQueryable&amp;lt;Content&amp;gt; Get()&lt;/p&gt;

&lt;p&gt;3) Sample class hierarchy (by the way i tried without inheritance with plan class)&lt;/p&gt;

&lt;p&gt;Base &lt;span class=&quot;error&quot;&gt;&amp;#91;_id, Title, Description etc.&amp;#93;&lt;/span&gt;&lt;br/&gt;
Content &lt;span class=&quot;error&quot;&gt;&amp;#91;Links(IList&amp;lt;string&amp;gt;, Tags (IList&amp;lt;string&amp;gt;)), etc.&amp;#93;&lt;/span&gt; : Base&lt;br/&gt;
Media &lt;span class=&quot;error&quot;&gt;&amp;#91;SpriteImages(IList&amp;lt;MediaFile&amp;gt;), etc.&amp;#93;&lt;/span&gt;: Content &lt;/p&gt;

&lt;p&gt;4) I attached a screenshot and i&apos;m writing a sample linq query.&lt;/p&gt;

&lt;p&gt;Here is the query:&lt;/p&gt;

&lt;p&gt; var collection = _context.GetDatabase().GetCollection(&quot;Contents&quot;).AsQueryable&amp;lt;Content&amp;gt;();&lt;/p&gt;

&lt;p&gt;            var list = collection.Where(x =&amp;gt; x.Links.Any(l =&amp;gt; l.StartsWith(&quot;/diziler/&quot;)));&lt;br/&gt;
            foreach (var li in list) &lt;/p&gt;
{
                Response.Write(li.Title + &quot;&amp;lt;br/&amp;gt;&quot;);
            }

&lt;p&gt;And you can look attached file.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                            <comment id="178140" author="hyurtseven" created="Tue, 23 Oct 2012 14:49:05 +0000"  >&lt;p&gt;Error screen&lt;/p&gt;</comment>
                            <comment id="178122" author="craiggwilson" created="Tue, 23 Oct 2012 14:26:08 +0000"  >&lt;p&gt;First of all, what OData library are you using?  We don&apos;t have any odata libraries, so I can only assume you are using the ReflectionProvider.  There are a number of issues with using the ReflectionProvider with our linq implementation simply because OData requires some very specific things.&lt;/p&gt;

&lt;p&gt;So, if you could provide some more information:&lt;/p&gt;

&lt;p&gt;1) What version of the driver are you using?&lt;br/&gt;
2) What OData provider are you using?&lt;br/&gt;
3) What does your class hierarchy look like?&lt;br/&gt;
4) Can you reproduce this without OData (for instance, just using the driver natively with this type of query?)&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="12204">SERVER-1264</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="35497">SERVER-5506</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="21081" name="Capture.PNG" size="74685" author="hyurtseven" created="Tue, 23 Oct 2012 14:49:05 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10012"><![CDATA[Major 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CSHARP-935</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hs0t87:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>129174</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_22279" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Server Compat</customfieldname>
                        <customfieldvalues>
                                        <label>2.6</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>