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.
Asked
Active
Viewed 2,677 times
2
-
The one which is already posted on this site works for me. You're going to need to be more specific about what you are presently doing, and what part about it isn't working for you. – Craig Stuntz Oct 26 '09 at 21:42
2 Answers
2
You may consider using EF 4.0 it's implemented there also StartsWith, EndsWith and many others. ADO.NET Blog

kubal5003
- 7,186
- 8
- 52
- 90
-
Ooo, do you know where it can be downloaded? And if it works with VS 2008? – Paul Oct 28 '09 at 23:38
-
2EF 4 comes with VS2010, requires .NET 4, and doesn't work with VS 2008. – Craig Stuntz Oct 30 '09 at 13:33
1
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.