<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:37:38 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-718] Support Is Nothing in a VB.NET Linq Expression</title>
                <link>https://jira.mongodb.org/browse/CSHARP-718</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;This istruction is not supported in VB&lt;br/&gt;
Dim postQuerable As IQueryable(Of Post) = New MongoDB.Driver.Linq.MongoQueryable(Of Post)(New MongoQueryProvider(posts))&lt;br/&gt;
Dim postsWithComments = From p In postQuerable&lt;br/&gt;
                                    Where p.Lista Is Nothing And p.Lista.Count &amp;gt; 0&lt;br/&gt;
                                    Select p&lt;/p&gt;

&lt;p&gt;but this is&lt;br/&gt;
var postsWithComments = from p in posts.AsQueryable()&lt;br/&gt;
                        where p.Comments != null &amp;amp;&amp;amp; p.Comments.Count &amp;gt; 0&lt;br/&gt;
                        select p;&lt;/p&gt;

&lt;p&gt;Do you think to implement a full support for VB ?&lt;/p&gt;</description>
                <environment>visual studio 2010 , mongo c# driver 1.8 vb net</environment>
        <key id="70437">CSHARP-718</key>
            <summary>Support Is Nothing in a VB.NET Linq Expression</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="sridhar">Sridhar Nanjundeswaran</assignee>
                                    <reporter username="cubasia">Giuseppe</reporter>
                        <labels>
                            <label>is</label>
                            <label>isnothing</label>
                            <label>linq,query</label>
                            <label>net</label>
                            <label>vb</label>
                    </labels>
                <created>Tue, 2 Apr 2013 08:10:07 +0000</created>
                <updated>Thu, 20 Mar 2014 14:36:50 +0000</updated>
                            <resolved>Thu, 11 Apr 2013 18:25:56 +0000</resolved>
                                    <version>1.8</version>
                                    <fixVersion>1.8.2</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="311340" author="auto" created="Thu, 11 Apr 2013 18:25:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-04-10T20:30:03Z&apos;, u&apos;name&apos;: u&apos;Sridhar Nanjundeswaran&apos;, u&apos;email&apos;: u&apos;sridhar@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-718&quot; title=&quot;Support Is Nothing in a VB.NET Linq Expression&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-718&quot;&gt;&lt;del&gt;CSHARP-718&lt;/del&gt;&lt;/a&gt; - Normalize VB Nothing comparison&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/050fe3fe1db08af713ffdb6a3e06b1996050b031&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/050fe3fe1db08af713ffdb6a3e06b1996050b031&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="305014" author="cubasia" created="Wed, 3 Apr 2013 12:50:49 +0000"  >&lt;p&gt;even modifying the code in &lt;br/&gt;
Where p.Lista Isnot Nothing And p.Lista.Count &amp;gt; 0&lt;/p&gt;

&lt;p&gt;Unsupported where clause: ((Object)p.Lista != null).&lt;br/&gt;
at MongoDB.Driver.Linq.PredicateTranslator.BuildQuery(Expression expression)     at MongoDB.Driver.Linq.PredicateTranslator.BuildAndAlsoQuery(BinaryExpression binaryExpression)     at MongoDB.Driver.Linq.PredicateTranslator.BuildAndQuery(BinaryExpression binaryExpression)     at MongoDB.Driver.Linq.PredicateTranslator.BuildQuery(Expression expression)     at MongoDB.Driver.Linq.SelectQuery.BuildQuery()     at MongoDB.Driver.Linq.SelectQuery.Execute()     at MongoDB.Driver.Linq.MongoQueryProvider.Execute(Expression expression)     at MongoDB.Driver.Linq.MongoQueryProvider.Execute&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(Expression expression)     at System.Linq.Queryable.ElementAtOrDefault&lt;span class=&quot;error&quot;&gt;&amp;#91;TSource&amp;#93;&lt;/span&gt;(IQueryable`1 source, Int32 index)     at DEMO.Form1.leggiconwhere() in E:\Disco I\DEV\NET\MONGODB\DEMO\DEMO\Form1.vb:line 125&lt;/p&gt;</comment>
                            <comment id="305011" author="cubasia" created="Wed, 3 Apr 2013 12:47:05 +0000"  >&lt;p&gt;&quot;Unsupported where clause: ((Object)p.Lista == null).&quot;&lt;br/&gt;
 at MongoDB.Driver.Linq.PredicateTranslator.BuildQuery(Expression expression)     at MongoDB.Driver.Linq.PredicateTranslator.BuildAndAlsoQuery(BinaryExpression binaryExpression)     at MongoDB.Driver.Linq.PredicateTranslator.BuildAndQuery(BinaryExpression binaryExpression)     at MongoDB.Driver.Linq.PredicateTranslator.BuildQuery(Expression expression)     at MongoDB.Driver.Linq.SelectQuery.BuildQuery()     at MongoDB.Driver.Linq.SelectQuery.Execute()     at MongoDB.Driver.Linq.MongoQueryProvider.Execute(Expression expression)     at MongoDB.Driver.Linq.MongoQueryProvider.Execute&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(Expression expression)     at System.Linq.Queryable.ElementAtOrDefault&lt;span class=&quot;error&quot;&gt;&amp;#91;TSource&amp;#93;&lt;/span&gt;(IQueryable`1 source, Int32 index)     at DEMO.Form1.leggiconwhere() in E:\Disco I\DEV\NET\MONGODB\DEMO\DEMO\Form1.vb:line 125&lt;/p&gt;</comment>
                            <comment id="304523" author="craiggwilson" created="Tue, 2 Apr 2013 21:07:15 +0000"  >&lt;p&gt;This is likely just a scenario we don&apos;t have a test for.  I assume the problem is in the Is Nothing comparison.  Can you add a stacktrace of the exception?&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|hrn1j3:</customfieldvalue>

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