LINQ Query to Contains Multiple Words

String queryText = "Emrah Kahraman";
char[] delimiterChars = { ‘ ‘ };
string[] words = queryText.Split(delimiterChars);

List<Object> result = (from prs in _context.Persons
where words.All(word => prs.Name.Contains(word))
select new
{
Name = prs.Name,
Surname = prs.Surname
}).ToList<Object>();

Bir cevap yazın