views:

287

answers:

2

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.

+1  A: 

You may consider using EF 4.0 it's implemented there also StartsWith, EndsWith and many others. ADO.NET Blog

kubal5003
Ooo, do you know where it can be downloaded? And if it works with VS 2008?
Paul
EF 4 comes with VS2010, requires .NET 4, and doesn't work with VS 2008.
Craig Stuntz
+1  A: 

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.

Devart