title: A binary operator with incompatible types was detected. Found operand types edm.string and edm.guid for kind equal
body: <p>I implementing a filter using breeze predicate. Using BreezeJs and ASP.NET WebAPI(Breeze Server Side) with Entity Framework</p>
  
  <p>The predicate looks like this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>var predicate = breezeProvider.breeze.Predicate.create('serialNumber', '==', $scope.filter.serialNumber);
  predicates.push(predicate);</code></pre>
  </div>
  </div>
  </p>
  
  <p>When I execute the query. Breeze throw an exception with the following messages:</p>
  
  <blockquote>
    <p>A binary operator with incompatible types was detected. Found operand types edm.string and edm.guid for kind equal</p>
  </blockquote>
  
  <p>The $scope.filter.serialNumber is a string and serialNumber is a GUID property </p>
  
  <p>The url is as follow.</p>
  
  <blockquote>
    <p><a href="http://localhost:51969/breeze/WarehouseProductTransactions/GetProducts" rel="nofollow noreferrer">http://localhost:51969/breeze/WarehouseProductTransactions/GetProducts</a>?$filter=(StatusId ne 3d) and (WarehouseId eq 1d) and (AuthorizedADUserId eq 'bTdbnW8t6Uu4D4KHCoQOhg==') and (SerialNumber eq guid'1b9d065e-eb48-4f3d-883c-2c841771a3e8')&amp;$orderby=Id&amp;$top=5&amp;$expand=Inventory,AuthorizedADUser&amp;$inlinecount=allpages&amp;)</p>
  </blockquote>
  
  <p>Note the snippet:</p>
  
  <blockquote>
    <p>(SerialNumber eq guid'1b9d065e-eb48-4f3d-883c-2c841771a3e8')</p>
  </blockquote>
  
  <p>My server side is as follow:</p>
  
  <pre><code>[EnableBreezeQuery(MaxNodeCount = 200)]
  public IQueryable&lt;WarehouseProductTransactionDetail&gt; GetProducts()
  {
      return _contextProvider.Context.WarehouseProductTransactionDetails;
  }
  </code></pre>
  
  <p>I'm trying to figure out how I can resolve this situation but no idea.</p>
  
  <p>Any help is appreciated </p>