Alex Rivera | Logout

How to do a LIKE query with linq?

Asked 2010-10-12T10:33:28.563
50

How can i perform an LIKE query within Linq?

I have the following query i would like to execute.

var results = from c in db.costumers
              where c.FullName LIKE "%"+FirstName+"%,"+LastName
              select c;
Edit
Report

1 Answer

5
 where c.FullName.Contains("string")
answered 2010-10-12T10:36:24.227

Your Answer