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.

Paul
  • 9,409
  • 13
  • 64
  • 113
  • 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 Answers2

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
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.

Community
  • 1
  • 1
Devart
  • 119,203
  • 23
  • 166
  • 186