question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

QueryableExtensions for ranges generates wrong Expression.

See original GitHub issue

This line https://github.com/rsdn/CodeJam/blob/master/CodeJam.Main/Collections/QueryableExtensions.Ranges.cs#L192

generates And but should be AndAlso. It should be not not bit operation but predicate.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sdanylivcommented, Oct 16, 2021

No time, otherwise I’ll just propose PR. I’ve seen this bug accidentally when analysed generated expression tree.

0reactions
NN---commented, Oct 16, 2021

@sdanyliv Adding test for this would take more time than I have now. If you have time for a unit test, it will be greatly appreciated. Pushed the fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

C# EF Core QueryableExtensions.FirstOrDefaultAsync ...
Based on my experience with EF Core, the query translator is trying to eliminate the constant predicate expressions in order to produce ......
Read more >
IN() list queries are not parameterized, causing increased ...
Currently, EF Core is not parameterizing IN(...) queries created from .Contains() (and maybe other cases). This has a very detrimental ...
Read more >
Dixin's Blog - C# 8.0 in-depth: Understanding index and range ...
C# 8.0 introduces index and range for array. This part discussed the index and range types, syntax, compilation, and how to apply them...
Read more >
Class: Mongoid::Criteria — Documentation by YARD 0.9.34
Adds a criterion to the Criteria that specifies a type or an Array of types that must be matched. #where(expression) ⇒ Criteria. This...
Read more >
AutoMapper Documentation
Understanding Your Mappings. AutoMapper creates an execution plan for your mapping. That execution plan can be viewed as an expression tree.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found