Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Edited Issue: OData $filter returns incorrect results for byte arrays when using Linq2Objects [391]

$
0
0
$filter=BinaryProp eq binary'010203'
doesn't work even if BinaryProp is new byte[] { 1, 2, 3 }.

This is due to the fact that the expression that we generate does a reference equals i.e it looks like
$it.BinaryProp == new Byte[] { 1. 2. 3 }

The exact same filter works fine with Linq2SQL and EF as they translate the equals expression to the right SQL.


Viewing all articles
Browse latest Browse all 7215

Trending Articles