LINQ Contains Statement

LINQ Contains Statement

Old forum URL: forums.lhotka.net/forums/t/5885.aspx


SouthSpawn posted on Wednesday, November 26, 2008

I was reading that you can use the "Contains" statement in Linq to represent an
"Where In ("1", "2",  "3") statement in SQL.
 
Here is my problem.
 
When I use the contains statement.
If I do something like "LinqObject.Contains("1")

It brings back anything that has a "1" in it such is "10", "100", etc...

How do I make it bring back only the values I specify?

Copyright (c) Marimer LLC