Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Using Linq.Any() in a ternary, cause a sql bug

$
0
0

I simplified the model ​to provide an understandable repro. Real world is far more complicated with 4 successives conditions.

Anyway, I've throw away the linq approach for this query, and written a custom sql to get the int[] rows id I want, then I get fluent objects using .Where(a => ​result.Contains(a.AccountId))

 

Thanks for help. This post was mainly to inform you about this sql syntax bug.


Viewing all articles
Browse latest Browse all 84751

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>