You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Am trying to check if any element of a list exists in the DB using the following code :
var results =await _dbContext.Brands.AsNoTracking().AnyAsync(a => brandsHashset.Contains(a.Name));
Expecting that EF will translate it to "in" clause and the list will be sent as parameters , instead am getting an exception that it can not be translated .
The text was updated successfully, but these errors were encountered:
Am trying to check if any element of a list exists in the DB using the following code :
var results =await _dbContext.Brands.AsNoTracking().AnyAsync(a => brandsHashset.Contains(a.Name));
Expecting that EF will translate it to "in" clause and the list will be sent as parameters , instead am getting an exception that it can not be translated .
The text was updated successfully, but these errors were encountered: