Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

Entity Framework 3.0 Contains cannot be translated in SQL as it was in EF Core 2.2

It's a 3.0 bug, tracked by #17342: Contains on generic IList/HashSet/ImmutableHashSet will throw exception.

Already fixed in 3.1. The workaround (if you can't wait) is to force the usage of Enumerable.Contains, for instance

t => tagIds.AsEnumerable().Contains(t.TagId)

or changing the type of the variable.

Tags:

Entity Framework Core

.Net Core 3.0

Entity Framework Core 3.0

Related

Can a PWA app be published to app store and play store Xcode not opening after updating to MacOS Catalina How to understand this Java 8 Stream collect() method? NSTaggedPointerString stringByReplacingCharactersInRange:withString:]: nil argument in iOS13 ECS task not starting - STOPPED (CannotPullContainerError: “Error response from daemon request canceled while waiting for connection” Can not get pytorch working with tensorboard How to show errors from ChangeNotifier using Provider in Flutter Is incrementing a pointer to a 0-sized dynamic array undefined? Handle change on Autocomplete Component from material ui Error while trying to ssh a docker container : System is booting up How to map an array vertically into columns? How to remove top space of `Form` in SwiftUI?

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy