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.