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

Support Is Nothing in a VB.NET Linq Expression

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.8.2
    • Affects Version/s: 1.8
    • Component/s: None
    • Environment:
      visual studio 2010 , mongo c# driver 1.8 vb net

      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 ?

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

              Created:
              Updated:
              Resolved: