I have a simple SQL statement.
Select distinct value from tablename where value not like '%TEST%'
How do I write this in Linq to SQL syntax.
I tried the below statement but it doesnt seem to work.
var p = (from c in tablename where !(c.value.ToUpper().Contains("%TEST%"))
select c.Value).Distinct().ToList()