Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-718

Support Is Nothing in a VB.NET Linq Expression

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.8.2
    • 1.8
    • None
    • visual studio 2010 , mongo c# driver 1.8 vb net

    Description

      This istruction is not supported in VB
      Dim postQuerable As IQueryable(Of Post) = New MongoDB.Driver.Linq.MongoQueryable(Of Post)(New MongoQueryProvider(posts))
      Dim postsWithComments = From p In postQuerable
      Where p.Lista Is Nothing And p.Lista.Count > 0
      Select p

      but this is
      var postsWithComments = from p in posts.AsQueryable()
      where p.Comments != null && p.Comments.Count > 0
      select p;

      Do you think to implement a full support for VB ?

      Attachments

        Activity

          People

            sridhar Sridhar Nanjundeswaran
            cubasia Giuseppe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: