leaves = leaves.Where(s => s.Employee.Name.ToUpper().Contains(searchString.ToUpper())
|| s.StartDate.ToString().Contains(searchString));
This will leads to an error..please help me,
Error: LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression..