title: A binary operator with incompatible types was detected. Found operand types 'Edm.Guid' and 'Edm.String' for operator kind 'Equal'
body: <p>I am getting the following exception when calling OData from my Kendo ListView:</p>
  
  <blockquote>
    <p>"A binary operator with incompatible types was detected. Found operand
    types 'Edm.Guid' and 'Edm.String' for operator kind 'Equal'"</p>
  </blockquote>
  
  <p><strong>DECODED FILTER:</strong><br/>
  $filter=OrganizationId eq '4c2c1c1e-1838-42ca-b730-399816de85f8'</p>
  
  <p><strong>ENCODED FILTER:</strong><br/>
  %24filter=OrganizationId+eq+%274c2c1c1e-1838-42ca-b730-399816de85f8%27</p>
  
  <p><strong>HAVE ALSO UNSUCESSFULLY TRIED THESE  FILTERS:</strong><br/>
  $filter=OrganizationId eq guid'4c2c1c1e-1838-42ca-b730-399816de85f8'<br/>
  $filter=OrganizationId eq cast('4c2c1c1e-1838-42ca-b730-399816de85f8', Edm.Guid)</p>
  
  <p><strong>MY WEB API CALL LOOKS LIKE:</strong><br/></p>
  
  <pre><code>// GET: odata/Sites
  [HttpGet]
  [EnableQuery]
  public IHttpActionResult GetSites(ODataQueryOptions&lt;Site&gt; queryOptions)
  {
      IQueryable&lt;Site&gt; sites = null;
  
      try
      {
          queryOptions.Validate(_validationSettings);
          sites = _siteService.GetAll().OrderBy(x =&gt; x.SiteName);
  
          if (sites == null)
              return NotFound();
      }
      catch (ODataException ex)
      {
          TraceHandler.TraceError(ex);
          return BadRequest(ex.Message);
      }
  
      return Ok(sites);
  }
  </code></pre>
  
  <p><strong>MY JAVASCRIPT KENDO DATASOURCE LOOKS LIKE:</strong><br/></p>
  
  <pre><code>var dataSource = new kendo.data.DataSource({
  
      filter: { field: "OrganizationId", operator: "eq", value: that.settings.current.customer.id },
      schema: {
          data: function (data) {
              return data.value;
          },
          total: function (data) {
              return data.length;
          }
      },
      serverFiltering: true,
      serverPaging: true,
      transport: {
          parameterMap: function (options, type) {
  
              var paramMap = kendo.data.transports.odata.parameterMap(options);
  
              // Remove invalid Parameters that Web API doesn't support
              delete paramMap.$inlinecount; // &lt;-- remove inlinecount
              delete paramMap.$format; // &lt;-- remove format
              delete paramMap.$callback; // &lt;-- remove callback
  
              // PLEASE NOTICE: That I have tried reformatting unsuccessfully
              //paramMap.$filter = paramMap.$filter.replace("OrganizationId eq ", "OrganizationId eq guid");
              //paramMap.$filter = "OrganizationId eq cast('81de6144-987c-4b6f-a9bd-355cb6597fc1', Edm.Guid)";
  
              return paramMap;
          },
          read: {
              url: buildRoute('odata/Sites')
              , dataType: 'json'
          }
      },
      type: 'odata'
  });
  </code></pre>