As a developer I want to be able to use iniline conditional statement in lamda expressions that generate filter definitions.
Example:
var posts = await blogContext.Posts.Find(p => (tag != null) ? p.Tags.Contains(tag) : true).ToListAsync();
currently in version 2.0.0.788 the above throws an error:
Unsupported filter: IIF(False, Serialization(Tags).Contains(null), True).
- duplicates
-
CSHARP-1771 Support IIF method (i.e. ternary operator) in LINQ
- Closed