Thursday, August 22, 2013
LinqToSQL: How To do a equivalent of Like '%' "Match Everything"
How can I do a equivalent of LIKE '%' in SQL with LinqToSql?
Simply pass an empty string "" to Contains function.
var patients = from p in ctx.Patients where PatientsName.Contains("");
Post a Comment