79577716

Date: 2025-04-16 16:51:58
Score: 0.5
Natty:
Report link

Further to @mathias-r-jessen comment (which looks to be the problem), you can ensure that the database query isn't the issue by replacing your database query. Try changing:

    string query = "Select * from number where number > 100";

To

    string query = "SELECT 110 AS number UNION SELECT 130 AS number";

This will return exactly two rows - so if you see two rows with this your issue will be the db query. As already suggested this is something that a debugger would really help to understand though.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @mathias-r-jessen
  • Low reputation (0.5):
Posted by: Nick Pattman