Problem with CONTAINS on multiple queries
Posted: Thu 06 Jul 2017 08:15
Hi,
dotConnect returns wrong elements when using CONTAINS multiple times - it returns always the same elements from the first usage. It seems that you are caching the values used the first time.
So if you execute the code
multiple times with different values in selectedIds, you will always get the elements from the first execution.
Democode can be downloaded here.
dotConnect returns wrong elements when using CONTAINS multiple times - it returns always the same elements from the first usage. It seems that you are caching the values used the first time.
So if you execute the code
Code: Select all
var elements = dbContext.Class1.Where(o => selectedIds.Contains(o.Id)).ToList();Democode can be downloaded here.