Answers to Software Questions the Experts Would Not Answer. Microsoft.NET, Java, Spring, Hibernate, JavaScript, C#, SQL Server as well as Mac, Solaris, Linux, CISCO IOS and related now include some Automotive IT! You could be having the same problem for hours like me!
Thursday, August 22, 2013
LinqToSQL: How To do a equivalent of Like '%' "Match Everything"
Question:
How can I do a equivalent of LIKE '%' in SQL with LinqToSql?
Answer:
Simply pass an empty string "" to Contains function.
For example,
var patients = from p in ctx.Patients where PatientsName.Contains("");
No comments:
Post a Comment