Avatar of MohitPandit
Flag for India

asked on 

C#: Write LINQ with method approach to search like LIKE operator for each string array value

Hello Folks,

I've a string array and want to search in database table as per LIKE operator in LINQ with method approach not SQL approach in query.
Could you assist into it?

FYI, below code used IN approach. But I want to use selectedInput array; search like LIKE operator for each value
string[] selectedInput
.Where(p => selectedInput.Contains(p.Number.ToLower()))

Open in new window

Best Regards
.NET ProgrammingC#LINQ Query

Avatar of undefined
Last Comment

8/22/2022 - Mon