title: ODataClient MaxProtocolVersion V3
body: <p>I am trying to consume OData from a windows forms. So, what i have done to now is create a new project, i added a web service reference to the OData service and try to consume it.</p>
  
  <p>My code is:</p>
  
  <pre><code>var VistaEntities = new VrExternalEntities("serviceURI");
  var query = VistaEntities.VRtblCinemaType
              .Where(
                       x =&gt; 
                       x.VRtblCinema_Operators
                            .Any
                            (
                                z =&gt; 
                                z.VRtblSessions
                                .Any
                                (
                                     y =&gt; 
                                     y.Session_dtmDate_Time &gt; DateTime.Now
                                )
                            )
                     )
               .Select
               (
                   x =&gt; 
                   new 
                   {
                       x.CinType_strCode, 
                       x.CinType_strDescription 
                   }
               );
  </code></pre>
  
  <p>If i remove the Where clause it works. If i do it says that Any is not supported. I know i have to set MaxProtocolVersion to V3 but i do not know how to do it. I don't have an entity context or anything else. I only have what i have stated above. </p>
  
  <p>Please provide steps on how to accomplish that.</p>
  
  <p>Thanks in advance.</p>
  
  <p>Giannis</p>