Entity Framework - Contains Method
-
06-07-2019 - |
Question
Someone has an answer to this missing feature in Entity Framework. Does anyone have a solution to the missing Contains method in Entity Framework that works? I've tried a number of those on here and through Google, but none of them seem to actually work.
Solution
You may consider using EF 4.0 it's implemented there also StartsWith, EndsWith and many others. ADO.NET Blog
OTHER TIPS
As it was already answered, Entity Framework 4.0 Beta 2 has support for this method, but it requires Visual Studio 2010 Beta 2 to be downloaded.
In Visual Studio 2008 SP1 you can either use manual LINQ expressions construction, like it is described here, or Entity SQL, like we have already recommended here.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow