I have to find a word in a LINQ to EF search. so I wrote the following code
var Q = (from k in MyList
where k.Name.Contains(query) || k.Description.Contains(query)
select k).Count();
if (Q == 0)
continue;
But The 'Description' field can be null sometimes. And I get error in those cases. Is there any way that I can avoid the error ??