Searching letters using LINQ

Hi I am using Linq and C # and I want to filter my data like this syntax in Sql Syntax in sql I have one table name Client where field name is' Select name from client where name like 'C%' can help solve this code in Linq

+2


a source to share


1 answer


Also check

 StartsWith
   EndsWith

      

another alternative



 var query = from c in ctx.Customers
                where SqlMethods.Like(c.City, "L_n%")
                select c;

      

same question: Similar to LINQ to Object query

+1


a source







All Articles