Hi,
I am checking and returning boolean value. But, it is returning always false.
MyInParameter : "APPLE"
My table Column
| Col1 |
| ORANGE/APPLE A_B/BANANA |
| APPLE A_C/ORANGE/GUAVA |
| ORANGE/BANANA |
| ORANGE/APPLE A_B/BANANA |
| APPLE A_C/ORANGE/GUAVA |
| ORANGE/BANANA |
Actually there is a word "APPLE" will be there in Col1. It should suppose to return "TRUE".
But, it will return false. any problem in my LINQ query.
below my LINQ Query
bool Result1 = DTRes.AsEnumerable().Any(row => MyInParameter == row.Field<String>("Col1"));
what is the problem in my query..?