Entity Framework not comparing byte arrays

c# entity-framework entity-framework-6 hash

Accepted Answer

For byte arrays, the equality operator behaves differently than you may think. Give zzz-5 a try.

var foundRequest = _complianceContext.ScoreResults
  .Where(sr => sr.SequenceEqual(searchHash));
6
1/25/2017 9:25:20 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow