Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Invalid query constructed when check for list.Contains(element) and the list is empty #37

Open
slavanap opened this issue Aug 18, 2018 · 0 comments
Assignees

Comments

@slavanap
Copy link

The issue

Tested sample:

List<int> parts = new List<int>();
var groupsQ = from grp in _context.Groups
              join item in _context.Items on grp.Id equals item.GroupId
              where item.PartId.HasValue && parts.Contains(item.PartId.Value)
              select grp;

Steps to reproduce

Check for List.Contains(X) when the list is empty.

Error details

capture

Further technical details

Firebird version: 2.5.8
EntityFrameworkCore.FirebirdSql version: 6.1.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants